SLURM*

If the $SLURM_JOBID is set, the $SLURM_TASKS_PER_NODE, $SLURM_NODELIST environment variables will be used to generate a machine file for mpirun. The name of the machine file is /tmp/slurm_${username}.$$. The machine file will be removed when the job is completed.

Example:

$ srun -N2 --nodelist=host1,host2 –A

$ mpirun –n 2 myprog.exe