...
Column | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
(Note that the wrapper should have execution permission. To allow that, the command "chmod 755 selectGPU_X.sh
" will do the job.)
The wrapper script defines the value of the ROCm environment variable ROCR_VISIBLE_DEVICES
with the value of the Slurm environment variable SLURM_LOCALID
. It then executes the rest of the parameters given to the script which are the usual execution instructions for the program intended to be executed. The SLURM_LOCALID
variable has the identification number of the task within each of the nodes (not a global identification, but an identification number local to the node). Further details about the variable are available in the Slurm documentation.
...