... | ... | @@ -78,6 +78,14 @@ If you don't need to open a terminal on a compute node, it is also possible to s |
|
|
|
|
|
$ srun -p gpus --ntasks=2 --cpus-per-task=12 --gres=gpu:2 --hint=nomultithread [--other-options] ./my_executable_file
|
|
|
|
|
|
## Reserving reusable resources for more than one interactive execution
|
|
|
|
|
|
Each interactive execution started as described in the preceding section is equivalent to a different job. As with all the jobs, they are susceptible to being placed in a wait queue for a certain length of time if the computing resources are not available.
|
|
|
|
|
|
If you wish to do more than one interactive execution in a row, it may be pertinent to reserve all the resources in advance so that they can be reused for the consecutive executions. You should wait until all the resources are available at one time at the moment of the reservation and not reserve for each execution separately.
|
|
|
|
|
|
Reserving resources (here, for 4 GPU on the default gpu partition) is done via the following command:
|
|
|
|
|
|
The reservation becomes usable after the resources have been granted:
|
|
|
|
|
|
$ salloc -p gpus --ntasks=2 --cpus-per-task=12 --gres=gpu:2 --hint=nomultithread [--other-options]
|
... | ... | |