Content
Code Compilation
For code compilation you can choose one of the two compilers Intel or Gnu. Both compilers are able to include the Intel MPI library.
Intel
module load intel/19.0.5 module load impi/2019.5 mpiicc -Wl,-rpath,$LD_RUN_PATH -o hello.bin hello.c mpiifort -Wl,-rpath,$LD_RUN_PATH -o hello.bin hello.f90 mpiicpc -Wl,-rpath,$LD_RUN_PATH -o hello.bin hello.cpp
Code execution
To execute your code you need to
- have a binary (executable, model code), which is the result of code compilation,
- create a slurm job script,
- submit the slurm jobs script.
Slurm scripts for mpirun
A slurm script is submitted to the job scheduler slurm. It contains
- the control about requested compute nodes and
- commands to start your binary. Using
mpirun
(from the MPI library) to start the binary you need to switch off slurm binding by addingexport SLURM_CPU_BIND=none
.
MPI only
MPI, OpenMP
You can run one code compiled with MPI and OpenMP. The examples cover the setup
- 2 nodes,
- 4 processes per node, 24 threads per process.