This is an old revision of the document!


Currently installed versions of OpenMPI and their supported MPI versions are:

OpenMPI version MPI version
1.6.5 2.1
1.8.1 3.0
1.10.2 3.1

Since version 1.10.2 has various performance enhancements, please use this version.

To compile your code with OpenMPI you need an compiler module and the OpenMPI module.

module load <compiler/of/your/choice>
module load <mpi/openmpi/1.10.2/gcc/4.4.7>
mpicc [compilation_parameter] -o <executable> <input_file.c> [input_file2.c ...]

Generally you can use OpenMPI compiled for the system compiler, which is gcc/4.4.7 at the moment. You can use this module with different compiler to compile your program.

Since F90 has some problems with the OpenMPI compiled with the system compiler, it is necessary to load the MPI module for the compiler you intend to use. A the moment there are modules for the following compilers:

  • gcc/4.4.7
  • gcc/4.9.3
  • gcc/5.1.0
  • gcc/5.3.0
  • intel/composer/2013_4_183
  • intel/composer/2016
module load <compiler/of/your/choice>
module load <mpi/openmpi/1.10.2/compiler/version>

To execute your program you need to have the correct module of OpenMPI (see in Compilation) loaded.

You execute your program by running it with mpirun. To use it within Mogon you submit your job like any other job and execute
mpirun [mpi_options] ./<executable> [input_parameter].

module load mpi/openmpi/1.10.2/gcc/4.4.7
bsub ... mpirun ./<executable> [input_parameter]

or, if you use F90

module load mpi/openmpi/1.10.2/compiler/version
bsub ... mpirun ./<executable> [input_parameter]

Tuning options are explained in man mpirun if the module is loaded. These options are chained behind the call of mpirun, e.g.

bsub ... mpirun --bind-to core --map-by core -mca btl openib,sm,self ./<executable> [input_parameter]
  • software/openmpi.1464096200.txt.gz
  • Last modified: 2016/05/24 15:23
  • by doeringn