Compiling and Installing Open MPI
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install dependencies:
yum install numactl-devel-* systemd-devel-*
- Load the compiler.
export PATH=/path/to/GNU/bin:$PATH
export LD_LIBRARY_PATH=/path/to/GNU/lib64:$LD_LIBRARY_PATH
- Decompress the Open MPI installation package.
cd /path/to/OPENMPI
tar -xvf openmpi-4.0.1.tar.gz
- Run the following commands:
cd openmpi-4.0.1
./configure --prefix=/path/to/OPENMPI --enable-pretty-print-stacktrace --enable-orterun-prefix-by-default --with-knem=/opt/knem-1.1.3.90mlnx1/ --with-hcoll=/opt/mellanox/hcoll/ --with-cma --with-ucx --enable-mpi1-compatibility CC=gcc CXX=g++ FC=gfortran
- Compile and install Open MPI.
make -j 16
make install
Parent topic: Deploying Open MPI
