Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Open MPI

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to install the system dependency package:
    yum install libxml2* systemd-devel.aarch64 numa* -y
  3. Run the following command to decompress the Open MPI installation package:
    tar -zxvf openmpi-4.0.3.tar.gz
  4. Run the following command to go to source code directory:
    cd openmpi-4.0.3
  5. Run the following command to compile and configure Open MPI:
    ./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
  6. Run the following command to compile and install Open MPI:
    make -j 16
    make  install
  7. Run the following commands to load the environment variables:
    export PATH=/path/to/OPENMPI/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/OPENMPI/lib:$LD_LIBRARY_PATH