...
Codeblock |
---|
title | MPI, OpenMP scattered |
---|
collapse | true |
---|
|
#SBATCH --nodes=2
#SBATCH --partition=standard96:test
module load impi/2019.5
export SLURM_CPU_BIND=none
export OMP_PROC_BIND=spread
export OMP_NUM_THREADS=2
mpirun -ppn 12 ./hello.bin |
The example covers the setup
- 2 nodes,
- 96 processes per node using hyperthreading,
- 2 threads per process.
Codeblock |
---|
title | MPI, OpenMP hyperthreading |
---|
collapse | true |
---|
|
#SBATCH --nodes=2
#SBATCH --partition=standard96:test
module load impi/2019.5
export SLURM_CPU_BIND=none
export OMP_NUM_THREADS=2
mpirun -ppn 96 ./hello.bin |