Intel MPI
Scenarios
This section describes how to install and use Intel MPI (version l_mpi_2018.0.128 is used as an example) in a BMS cluster.
Perform this operation on each BMS in a cluster.
Prerequisites
Password-free login has been configured between BMSs in the cluster.
Procedure
- Install Intel MPI.
- Download Intel MPI.
Download path: https://software.intel.com/en-us/intel-mpi-library
- Decompress and install Intel MPI.
For example, run the following commands to decompress and install l_mpi_2018.0.128.tgz:
# tar -xvf l_mpi_2018.0.128.tgz
# cd l_mpi_2018.0.128/
# ./install.sh
Figure 1 Installed Intel MPI
- Download Intel MPI.
- Configure environment variables.
- Add the following data to ~/.bashrc as a common user:
export PATH=$PATH:/opt/intel/impi/2018.0.128/bin64
export LD_LIBRARY_PATH=/opt/intel/impi/2018.0.128/lib64
- Run the following command to import environment variables:
$ source ~/.bashrc
- Add the following data to ~/.bashrc as a common user:
- Run the following command to check whether environment variables have been imported:
$ which mpirun
If information shown in Figure 2 is displayed, the environment variables have been imported.
- Run Intel MPI on a BMS.
- Run the following command to generate an executable file:
$ mpicc hello.c -o hello
- Run the following command to run Intel MPI on a BMS:
$ mpirun -np 2 /home/rhel/hello
Figure 3 Running Intel MPI on a BMS
- Run the following command to generate an executable file:
Last Article: Spectrum MPI
Next Article: Platform MPI

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