...
Codeblock | ||
---|---|---|
| ||
blogin> sbatch myjobscipt.slurm Submitted batch job 8028673 blogin> ls slurm-8028673.out slurm-8028673.out |
Using mpirun
Using mpirun
the pinning is controlled by the MPI library. Pinning by slurm you need to switch off by adding export SLURM_CPU_BIND=none
.
MPI only
Codeblock | ||
---|---|---|
| ||
#!/bin/bash #SBATCH --nodes=2 #SBATCH --partition=standard96cpu-clx:test module load impi/2019.5openmpi/gcc/5.0.3 export SLURM_CPU_BIND=none mpirun -np 192 --map-ppnby ppr:96:node ./hello.bin |
Binding with OpenMPI
When using OpenMPI, binding is controlled using the –-bind-to
parameter. To bind processes to cores, use --bind-to core
. Possible other values can be found in the man page.
...