Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Open MPI

You acknowledge and agree that you need to download and integrate the open source and third-party dependency software for using the Compiler and Debugger to debug HPC parallel tasks. Huawei does not assume any responsibility for the software vulnerabilities and security issues.

Open MPI is a high-performance message passing interface (MPI) library project combining technologies and resources from several other projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI). It is an open-source implementation of the MPI-2 standard, and developed and maintained by some scientific research institutions and enterprises. Therefore, Open MPI can obtain professional expertise, industrial technologies, and resources from the high-performance community to create the best MPI library for system and software vendors, program developers, and researchers.

Environment Requirements

Table 1 and Table 2 describe the hardware, software and OS requirements for installing Open MPI.

Before installing Open MPI, ensure that the OS of the remote server is on the compatibility list.

Table 1 Hardware requirements

Item

Description

CPU

Kunpeng 920 processor

Table 2 Software requirements

Item

Version

Download URL

Open MPI

4.1.4

Link

For details about the software installation paths involved in the Open MPI installation and the description of configuring the installation environment, see Planning Data and Configuring the Installation Environment in the HPC Solution Installation Guide.

Deploying Open MPI

  1. Download the installation package.
    1. Download the OpenMPI installation package.
    2. Use SFTP to upload the Open MPI installation package to the /path/to/OPENMPI directory on the server.
  2. Compile and install Open MPI.
    1. Use PuTTY to log in to the server as the root user.
    2. Install the dependencies using Yum.
      1
      yum install numactl-devel-* systemd-devel-*
      
    3. Load the compiler.
      1
      2
      export PATH=/path/to/GNU/bin:$PATH
      export LD_LIBRARY_PATH=/path/to/GNU/lib64:$LD_LIBRARY_PATH
      
    4. Decompress the Open MPI installation package.
      1
      2
      cd /path/to/OPENMPI
      tar -zxvf openmpi-4.1.4.tar.gz
      
    5. Perform the configuration.
      1
      2
      cd openmpi-4.1.4
      ./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
      
      • --with-ucx: Use the built-in library /usr/lib64/ucx.
      • --with-knem and --with-hcoll: Install the mellanox driver. For details, see Installing the InfiniBand NIC Driver in HPC Solution Basic Environment Setup Guide.
    6. Perform the compilation and installation.
      1
      2
      make -j 16
      make install
      

Verifying Open MPI

  1. Use PuTTY to log in to the server as the root user.
  2. Load environment variables.
    export PATH=/path/to/GNU/bin:/path/to/OPENMPI/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/GNU/lib64:/path/to/OPENMPI/lib:$LD_LIBRARY_PATH

    /path/to/OPENMPI/: Replace it with the actual installation path of Open MPI.

  3. Check whether Open MPI is successfully installed.
    1
    mpirun --version
    

    The installation is successful if the following information is displayed:

    1
    2
    mpirun (Open MPI) 4.1.4
    Report bugs to http://www.open-mpi.org/community/help/