Open MPI Delivered with the IB Driver
Scenarios
This section describes how to install and use Open MPI (version 3.1.0rc2 is used as an example) delivered with the IB driver on a BMS.
Perform this operation on each BMS in a cluster.
Prerequisites
Password-free login has been configured between BMSs in the cluster.
Procedure
- Check whether the IB driver has been installed.
- Run the following commands to check whether the IB driver has been installed:
$ ls /usr/mpi/gcc/openmpi-3.1.0rc2/bin/mpirun
$ rpm -qa | grep mlnx-ofa
- Check the command output.
- Run the following commands to check whether the IB driver has been installed:
- Install the IB driver.
- Download the installation package MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.3-x86_64.tgz.
Download path: http://www.mellanox.com/page/products_dyn?product_family=26&mtag=linux_sw_drivers
Figure 2 IB driver download center
- Run the following commands to install the software package:
# yum install tk tcl
# tar -xvf MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.3-x86_64.tgz
# cd MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.3-x86_64
# ./mlnxofedinstall
- Download the installation package MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.3-x86_64.tgz.
- Configure environment variables.
- Use VIM to open the ~/.bashrc file and add the following data to the file:
export PATH=$PATH:/usr/mpi/gcc/openmpi-3.1.0rc2/bin
export LD_LIBRARY_PATH=/usr/mpi/gcc/openmpi-3.1.0rc2/lib64
- Run the following command to check whether the MPI environment variables are correct:
$ which mpirun
If information shown in Figure 3 is displayed, environment variables have been configured.
- Use VIM to open the ~/.bashrc file and add the following data to the file:
- Run the following command to run Open MPI delivered with the IB driver on a BMS:
$ mpirun -np 2 -mca btl_openib_if_include "mlx5_0:1" -x MXM_IB_USE_GRH=y /usr/mpi/gcc/openmpi-3.1.0rc2/tests/imb/IMB-MPI1 PingPong
Figure 4 Running the Open MPI on a BMS
Last Article: MPIs Supported in the BMS Scenario
Next Article: Community Open MPI


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.