OpenMPI on CPU CLX
Content
Code execution
For examples for code execution, please visit Slurm partition CPU CLX.
Code compilation
For code compilation please use gnu compiler.
Slurm job script
A slurm script is submitted to the job scheduler slurm. It contains
the request for compute nodes of a Slurm partition CPU CLX and
commands to start your binary. You have two options to start an MPI binary.
using
mpirunusing
srun
Using mpirun
Using mpirun (from the MPI library) to start the binary you need to switch off slurm binding by adding export SLURM_CPU_BIND=none.
You can run one code compiled with MPI and OpenMP. The example covers the setup
2 nodes,
4 processes per node, 24 threads per process.
Using srun
You can run one code compiled with MPI and OpenMP. The example covers the setup
2 nodes,
4 processes per node, 24 threads per process.