Skip to content

Compiling OpenMPI

This is for sysadmins.

Open MPI 4.1.0

Prerequisites

Modules:

  • choice of compiler:
    • gcc/9.2.0
    • intel/composerxe/2020u4 -- must unload gcc/9.2.0 due to libstdc++ conflict
  • cm-pmix3

For CUDA features:

  • cuda11.0/toolkit

Configure Line

Build C++ interface even though it is deprecated because some software wants C++ interface.

Adjust prefix for compiler.

./configure --prefix=/ifs/opt/openmpi/intel/2020/4.1.0 --enable-mpi-cxx --enable-mpi-fortran \
    --enable-cxx-exceptions --enable-shared \
    --with-pmix=/cm/shared/apps/cm-pmix3/3.1.4 \
    --with-pmix-libdir=/cm/shared/apps/cm-pmix3/3.1.4/lib --with-hcoll=/opt/mellanox/hcoll
    --with-ucx --without-verbs --with-slurm --with-knem=/opt/knem-1.1.3.90mlnx1

For CUDA features, add:

--with-cuda=${CUDA_HOME}