openmpi
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
openmpi [2022/03/25 17:26] – created nico | openmpi [2022/03/25 17:50] (current) – nico | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Submit your OpenMPI job with SLURM ====== | ====== Submit your OpenMPI job with SLURM ====== | ||
- | OpenMPI is built on Magi with SLURM support. To use OpenMPI, you must load the correspondig [[modules|module]]. Feel free to browse the / | + | OpenMPI is built on Magi with SLURM support. To use OpenMPI, you must load the correspondig [[modules|module]]. Feel free to browse the / |
+ | |||
+ | | ||
+ | |||
+ | Then, you can compile your OpenMPI codes : | ||
+ | |||
+ | | ||
+ | |||
+ | The last step is to write a submission script for slurm (here run.slurm) : | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | srun ./ | ||
+ | |||
+ | You can refer to this [[submission_script|documentation]] for more informations on job submission. This run an OpenMPI job on two nodes (--nodes=2) with two tasks per node (--ntasks-per-node=2). it leads to a total of four MPI process (or workers). |
openmpi.txt · Last modified: 2022/03/25 17:50 by nico