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.
Deploying Open MPI
- Download the installation package.
- Compile and install OpenMPI.
- Use PuTTY to log in to the server as the root user.
- Install the dependencies using Yum.
1yum install numactl-devel-* systemd-devel-*
- Load the compiler.
1 2
export PATH=/path/to/GUN/bin:$PATH export LD_LIBRARY_PATH=/path/to/GUN/lib64:$LD_LIBRARY_PATH
- Decompress the Open MPI installation package.
1 2
cd /path/to/OPENMPI tar -zxvf openmpi-4.0.1.tar.gz
- 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
- 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
- Use PuTTY to log in to the server as the root user.
- 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
- Check whether Open MPI is successfully installed.
1mpirun --versionThe 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/