Intel MPI¶
Loading Intel MPI¶
Intel MPI module is available to load once you load the corresponding intel-oneapi-compilers module.
module load intel-oneapi-compilers/2025.2.1
module load intel-oneapi-mpi
module list
Currently Loaded Modules:
1) intel-oneapi-compilers/2025.2.1 2) intel-oneapi-mpi/2021.16.1
module load intel-oneapi-compilers/2023.1.0
module load intel-oneapi-mpi
module list
Currently Loaded Modules:
1) intel-oneapi-compilers/2023.1.0 2) intel-oneapi-mpi/2021.10.0
Compiling MPI applications with Intel MPI¶
Open MPI compiler wrappers mpiicx, mpiicpx, mpiifx can be used to compile MPI applications. For hello world C/C++/Fortran examples:
Examples
mpiicx -o helloc hello_world.c
mpiicx is the MPI wrapper to the Intel(R) C/C++ compiler and should be used to compile and link C programs
mpiicpx -o hellocxx hello_world.cpp
mpiicpx is the MPI wrapper to the Intel(R) oneAPI DPC++/C++ Compiler and should be used to compile and link C++ programs
mpiifx -o hellofortran hello_world.f90
mpiifx is the MPI wrapper to the Intel(R) oneAPI Fortran Compiler ifx.
The intel-oneapi-mpi package also comes with MPI wrapper to the Intel Classic Compilers: mpiicc, mpiicpc and mpiifort.
Running MPI applications using Intel MPI¶
Intel MPI applications can be launched using:
mpirune.g.:mpirun -np 2 ./hellocsrun: To launch an Intel MPI application usingsrun, please set theI_MPI_PMI_LIBRARYenvironment variable and passmpi=pmi2argument as follows in your slurm script.export I_MPI_PMI_LIBRARY=/usr/lib64/libpmi2.so srun --mpi=pmi2 mpi_application