Skip to content
Snippets Groups Projects
Commit 8c1993b3 authored by Branislav Jansik's avatar Branislav Jansik
Browse files

Update slurmtopbs.md

parent 314af8dc
No related branches found
No related tags found
1 merge request!343Slurmtopbs
Pipeline #23325 failed
...@@ -15,7 +15,12 @@ The `qsub` always starts execution in the `$HOME` directory. ...@@ -15,7 +15,12 @@ The `qsub` always starts execution in the `$HOME` directory.
## Migrating PyTorch from SLURM ## Migrating PyTorch from SLURM
The Intel MPI provides some useful variables that may be used in the scripts executed via the MPI. The Intel MPI provides some useful variables that may be used in the scripts executed via the MPI.
these include `PMI_RANK`,`PMI_SIZE` and `MPI_LOCALRANKID`. For example: these include `PMI_RANK`,`PMI_SIZE` and `MPI_LOCALRANKID`.
- The `PMI_RANK` and `MPI_LOCALRANKID` returns the process rank within the MPI_COMM_WORLD communicator - the process number
- The `PMI_SIZE` returns the process rank within the MPI_COMM_WORLD communicator - the number of processes
For example:
``` ```
$ mpirun -n 4 /bin/bash -c 'echo $PMI_SIZE' $ mpirun -n 4 /bin/bash -c 'echo $PMI_SIZE'
4 4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment