我要评分
获取效率
正确性
完整性
易理解

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, Table 2 and Table 3 describe the hardware, software and OS requirements for installing Open MPI.

Table 1 Hardware requirements

Item

Description

CPU

Kunpeng 920 processor

Table 2 Software requirements

Item

Version

Download URL

Open MPI

4.0.1

https://www.open-mpi.org/software/ompi/v4.0/

Table 3 OS requirements

Item

Version

Download URL

CentOS

7.6

https://www.centos.org/download/

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 Open MPI installation package.
    2. Use an SFTP tool to upload the Open MPI installation package to the /path/to/OPENMPI directory on the server.
  2. Compile and install OpenMPI.
    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/GUN/bin:$PATH
      export LD_LIBRARY_PATH=/path/to/GUN/lib64:$LD_LIBRARY_PATH
      
    4. Decompress the Open MPI installation package.
      1
      2
      cd /path/to/OPENMPI
      tar -zxvf openmpi-4.0.1.tar.gz
      
    5. Perform the configuration.
      1
      2
      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
      
      • --with-ucx: Use the built-in library /user/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. Run the following commands to perform the installation and compilation:
      1
      2
      make -j 16
      make install
      

SFTP: SSH file transfer protocol

PuTTY: connection tool supporting Telnet, SSH, Rlogin, pure TCP, and serial ports

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
  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.0.1
    Report bugs to http://www.open-mpi.org/community/help/