... | ... | @@ -15,7 +15,7 @@ To effectuate interactive executions of your GPU codes on compute nodes with GPU |
|
|
- The `srun` command:
|
|
|
- to [obtain a terminal on a GPU compute node](#obtaining-a-terminal-on-a-gpu-compute-node) within which you can execute your code,
|
|
|
- or to [directly execute your code on the GPU partition](#interactive-execution-on-the-gpu-partition).
|
|
|
- The `salloc` command to reserve GPU resources which allows you to do more than one execution consecutively.
|
|
|
- The `salloc` command to [reserve GPU resources](#reserving-reusable-resources-for-more-than-one-interactive-execution) which allows you to do more than one execution consecutively.
|
|
|
|
|
|
However, if the computations require a large amount of GPU resources (in number of cores, memory, or elapsed time), it is necessary to submit a batch job.
|
|
|
|
... | ... | @@ -84,7 +84,7 @@ Each interactive execution started as described in the preceding section is equi |
|
|
|
|
|
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:
|
|
|
Reserving resources (here, for 2 GPU on the default gpu partition) is done via the following command:
|
|
|
|
|
|
The reservation becomes usable after the resources have been granted:
|
|
|
|
... | ... | @@ -109,4 +109,3 @@ $ exit |
|
|
exit
|
|
|
salloc: Relinquishing job allocation 1730516
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
|