Currently in beta. Allow users to practice Tensara problems from th e comfort of their own IDE. For now, CLI submissions do not show up on the leaderboard. Actively working on this, expect updates in 2 weeks!
For Linux/Mac:
curl -sSL https://get.tensara.org/install.sh | bash
For Windows (untested):
iwr -useb https://get.tensara.org/install.sh | iex
Run:
tensara
or
tensara --help
For running tests or benchmarking:
tensara (checker | benchmark) -g <gpu_type> --problem <problem_name> --solution <solution_file>
tensara checker -g T4 --problem vector-addition --solution tests/sol.cu
Short forms for args are also supported:
tensara checker -g T4 -p vector-addition -s tests/sol.cu
Supports the same languages and GPUs as the Tensara engine.
To view available problems, use:
tensara problems
You can show different fields by using the --fields
flag and sort by --sort-by
:
tensara problems --f tags --s difficulty
To see all available flags:
tensara problems --help
Before submitting solutions, authenticate using your Tensara account:
tensara auth -t <token>
For more details, visit tensara.org/cli.
To initialize a new project, use:
tensara init <directory> -p <problem_name> -l <language>
This will create a template solution file and a problem file in the specified directory.
To submit your solution on Tensara, use the submit
command:
tensara submit -g <gpu_type> -p <problem_name> -s <solution_file>
Example:
tensara submit -g T4 -p vector-addition -s solution.cu
Your results will be shown in the CLI. Submissions will be reflected on the Tensara dashboard.
Remove the binary:
sudo rm /usr/local/bin/tensara
This documentation will evolve as we expand support. For the latest updates, visit tensara.org/cli.