...
Codeblock | ||
---|---|---|
| ||
blogin> sbatch myjobscipt.slurm Submitted batch job 8028673 blogin> ls slurm-8028673.out slurm-8028673.out |
The examples for slurm job scripts, e.g. myjobscipt.slurm, that cover the setup
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=standard96:test module load impi/2019.5 export SLURM_CPU_BIND=none mpirun -ppn 96 ./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.
...