Intel MPI Library

Version Module file Name System A System B/C System G Cloud System Notes
2024.0 intel/2024.0 + + - + Introduced in April 2024. Intel compiler + MKL + TBB
2023.2 (default) intel/2023.2 + + - + Introduced in April 2024. Intel compiler + MKL + TBB
2023.2-rt intel/2023.2-rt + + - + Introduced in April 2024. runtime libraries
2023.1 intel/2023.1 + + - + Introduced in August 2023.
2023.1-rt intel/2023.1-rt + + - + Introduced in August 2023. runtime libraries
2022.3 intelmpi/2022.3 + + - + Introduced in November 2022
2022.3-rt intelmpi/2022.3-rt + + - + Introduced in November 2022. runtime library

+ : Available for all users
- : Not available

The thread parallel support level available in Intel MPI is MPI_THREAD_MULTIPLE. MPI functions can be called from each thread with no restriction.

Compile commands (Intel compiler)

Language Command Operands
Fortran mpiifort mpiifort Option File Name
C mpiicc mpiicc Option File Name
C++ mpiicpc mpiicpc Option File Name

Compile Commands(GNU compiler)

Language Command Operands
Fortran 95 mpif90 mpif90 Option File Name
Fortran 77 mpif77 mpif77 Option File Name
C mpigcc mpicc Option File Name
C++ mpigcxx mpicxx Option File Name

Examples of Compiling

$ mpiifort -O3 -parallel sample_mpi.f90

To execute the compiled MPI program, use tssrun command for interactive processing and srun for batch processing. For both interactive processing and batch processing, the number of parallelism is specified by the --rsc option argument p. Please refer to sample for details.

Example (interactive processing)

$ tssrun --rsc p=2 ./a.out

Please refer to the Interactive Processing for details on the execution with interactive processing.

  • Execute in 8 parallels
$ tssrun --rsc p=8 ./a.out
  • Execute in combination with thread parallelism(MPI 4 parallel, OpenMP 8 parallel)
$ tssrun --rsc p=4:t=8:c=8 ./a.out

Please refer to the batch processing for details on the batch execution.

  • Execute in 8 parallels
$ cat sample.sh
#!/bin/bash
#============ SBATCH Directives =======
#SBATCH -p gr19999b
#SBATCH -t 1:0:0
#SBATCH --rsc p=8
#SBATCH -o %x.%A.out

#============ Shell Script ============
srun ./a.out
$ sbatch sample.sh
  • Execute in combination with thread parallelism(MPI 4 parallel, OpenMP 8 parallel)
$ cat sample.sh
#!/bin/bash
#============ SBATCH Directives =======
#SBATCH -p gr19999b
#SBATCH -t 1:0:0
#SBATCH --rsc p=4:t=8:c=8:m=8G
#SBATCH -o %x.%A.out

#============ Shell Script ============
srun ./a.out
$ sbatch sample.sh