d. Work With Intel MPI

In this section, Learn how to work with Intel MPI on AWS ParallelCluster.

Enable Intel MPI

Intel MPI is available on the AWS ParallelCluster AMIs for alinux, alinux2, centos7, ubuntu1604, and ubuntu1804 values for the Image: Os: setting.

Using Intel MPI indicates that you accept the Intel Simplified Software License.

Open MPI is placed on the path by default. To enable Intel MPI instead of Open MPI, the Intel MPI module must be loaded first. The exact name of the module changes with every update. To see which modules are available, run module avail,

module avail

the output of the command is something like this:

------------------------- /usr/share/Modules/modulefiles-------------------------
dot                        module-git                 modules                    openmpi/4.0.3
libfabric-aws/1.9.0amzn1.1 module-info                null                       use.own

---------------- /opt/intel/impi/2019.7.217/intel64/modulefiles/ ----------------
intelmpi

To load a module, run module load modulename. You can add this to the script that needs to use Intel MPI.

module load intelmpi

To see which modules are currently loaded, run module list.

module list

You’ll see intelmpi is loaded:

Currently Loaded Modulefiles:
  1) /intelmpi

Understand Intel MPI version

To verify that Intel MPI is enabled and what version is installed, run mpirun –version.

mpirun --version

the output of the command is something like this:

Intel(R) MPI Library for Linux* OS, Version 2019 Update 8 Build 20200624 (id: 4f16ad915)
Copyright 2003-2020, Intel Corporation.