+
These parts, and any part you choose to add in between/anywhere else, should all be joined with a double ampersand (i.e. &&).
Example 1. Explicit resources
$ ssh bhn20 (1)
$ runai-bgu submit R \ (2)
-n conv-2-64 \ (3)
-c 2 \ (4)
-m 4Gi \ (5)
-g 1 \ (6)
--conda r_env \ (7)
-- "Rscript main.R" (8)
| 1 |
Configure SSH connection to bhn20 |
| 2 |
Specifies it is a R. |
| 3 |
Specifies the name of the job. |
| 4 |
Allocates 2 CPU cores. |
| 5 |
Allocates 4GiB of memory*. |
| 6 |
Specifies the GPU allocation(Whole or fractions). If you do not need GPU, do not use this flag. |
| 7 |
Tells The Job to use the r_env Conda environment. |
| 8 |
The command to run, here Rscript. |
|
|
The space ( ) between the two dashes (--) and the command is intentional. As are the quotes (") surrounding the command.
|
|
|
When running the command you can change directory to the location of your R file (cd ~/path/to/file && Rscript main.R), or give the full path (Rscript ~/path/to/file/main.R ).
|
Example 2. Using User Templates:
$ runai-bgu submit R \ (1)
-n conv-2-64 (2)
--ut train-over-quota-user (3)
--conda r_env \ (4)
-- "Rscript main.R" (5)
| 1 |
Submit a R workload |
| 2 |
Specify the job name |
| 3 |
Use the --ut specify the user template |
| 4 |
Tells The Job to use the r_env Conda environment. |
| 5 |
The command to run, here Rscript. |
|
|
The space ( ) between the two dashes (--) and the command is intentional. As are the quotes (") surrounding the command.
|
|
|
When running the command you can change directory to the location of your R file (cd ~/path/to/file && Rscript main.R), or give the full path (Rscript ~/path/to/file/main.R ).
|
Example 3. Using Group Templates:
$ runai-bgu submit R \ (1)
-n conv-2-64 (2)
--ug train-over-quota-group (3)
--conda r_env \ (4)
-- "Rscript main.R" (5)
| 1 |
Submit a R workload |
| 2 |
Specify the job name |
| 3 |
Use the --ug specify the group template |
| 4 |
Tells The Job to use the r_env Conda environment. |
| 5 |
The command to run, here Rscript main.R. |
|
|
The space ( ) between the two dashes (--) and the command is intentional. As are the quotes (") surrounding the command.
|
|
|
When running the command you can change directory to the location of your R file (cd ~/path/to/file && Rscript main.R), or give the full path (Rscript ~/path/to/file/main.R ).
|