Installing Open MPI
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install the system dependency package:
yum install libxml2* systemd-devel.aarch64 numa* -y
- Run the following command to decompress the Open MPI installation package:
tar -zxvf openmpi-4.0.3.tar.gz
- Run the following command to go to source code directory:
cd openmpi-4.0.3
- 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
- Run the following command to compile and install Open MPI:
make -j 16 make install
- 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
Parent topic: Setting Up the Environment for the Cluster Scenario