Spectrum MPI
Scenarios
This section describes how to install and use Spectrum MPI (version 10.01.01 is used as an example) in a BMS cluster.
Perform this operation on each BMS in a cluster.
Background
- IBM Spectrum MPI 10.1.0.1 Eval for x86_64 Linux
- Red Hat Enterprise Linux version 6.6 and later
- Red Hat Enterprise Linux version 7.1 and later
- SUSE Linux Enterprise Server version 11 SP4
- SUSE Linux Enterprise Server version 12 and later
- IBM Spectrum MPI 10.1.0.2 Eval for Power 8 Linux
Red Hat Enterprise Linux version 7.3 and later
Prerequisites
Password-free login has been configured between BMSs in the cluster.
Procedure
- Install IBM Spectrum MPI.
- Obtain IBM Spectrum MPI software packages for registration.
There are two IBM Spectrum MPI software packages, including the license and software:
- ibm_smpi_lic_s-10.1Eval-rh7_Aug11.x86_64.rpm
- ibm_smpi-10.01.01.0Eval-rh7_Aug11.x86_64.rpm
Download path: https://www-01.ibm.com/marketing/iwm/iwm/web/preLogin.do?source=swerpsysz-lsf-3
- Install IBM Spectrum MPI.
- Upload the obtained MPI software packages to a directory, /home/rhel is recommended, on the BMS running the MPI.
- Configure environment variables.
- If you choose to automatically accept the IBM Spectrum MPI installation license agreement, run the following command:
- If you choose to manually accept the IBM Spectrum MPI installation license agreement, run the following command:
- Install the license.
- If you choose to automatically accept the IBM Spectrum MPI installation license agreement, run the following command:
- If you choose to manually accept the IBM Spectrum MPI installation license agreement, run the following commands:
# rpm -ivh ibm_smpi_lic_s-10.1Eval-rh7_Aug11.x86_64.rpm
# sh /opt/ibm/spectrum_mpi/lap_se/bin/accept_spectrum_mpi_license.sh
- Install the software.
- Obtain IBM Spectrum MPI software packages for registration.
- Configure environment variables.
- By default, Spectrum MPI is installed in the /opt/ibm/spectrum_mpi directory. In this case, you need to configure the following environment variables:
$ export MPI_ROOT=/opt/ibm/spectrum_mpi
$ export LD_LIBRARY_PATH=$MPI_ROOT/lib:$LD_LIBRARY_PATH
$ export PATH=$MPI_ROOT/bin:$PATH
$ export MANPATH=$MPI_ROOT/share/man:$MANPATH
$ unset MPI_REMSH
- Run the following command to check whether the MPI environment variables are correct:
Figure 1 Viewing Spectrum MPI environment variables
- By default, Spectrum MPI is installed in the /opt/ibm/spectrum_mpi directory. In this case, you need to configure the following environment variables:
- Run the executable file on a BMS through Spectrum MPI.
- For example, the hello.c file is in the /home/rhel/ directory, and the generated executable file is named hello. Then, run the following commands:
$ cd /home/rhel/
$ mpicc hello.c -o hello
- Run the following command on a BMS to run the executable file through Spectrum MPI:
$ mpirun -np 2 /home/rhel/hello
Figure 2 Successful Spectrum MPI execution on the BMS
- For example, the hello.c file is in the /home/rhel/ directory, and the generated executable file is named hello. Then, run the following commands:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot