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.
Deploying Open MPI
- Download the installation package.
- Compile and install Open MPI.
- 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/GNU/bin:$PATH export LD_LIBRARY_PATH=/path/to/GNU/lib64:$LD_LIBRARY_PATH
- Decompress the Open MPI installation package.
1 2
cd /path/to/OPENMPI tar -zxvf openmpi-4.1.4.tar.gz
- 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
- Perform the compilation and installation.
1 2
make -j 16 make install
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
/path/to/OPENMPI/: Replace it with the actual installation path of Open MPI.
- Check whether Open MPI is successfully installed.
1mpirun --versionThe 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/