Skip to content

Instantly share code, notes, and snippets.

@sean-smith
Created June 7, 2022 14:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sean-smith/68919ec23cd015c157e1edbd958f14af to your computer and use it in GitHub Desktop.
Save sean-smith/68919ec23cd015c157e1edbd958f14af to your computer and use it in GitHub Desktop.
Install older intel mpi versions

Intel MPI Versions

IntelMPI 2018.2

Download and install

wget http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/12748/l_mpi_2018.2.199.tgz
tar -xzf l_mpi_2018.2.199.tgz
cd l_mpi_2018.2.199/
sudo ./install.sh

Then create the modulefile:

sudo su
mkdir -p /usr/share/Modules/modulefiles/intelmpi
cd /usr/share/Modules/modulefiles/intelmpi
echo "#%Module" > 2018.2

Install env2:

wget https://sourceforge.net/projects/env2/files/env2/download -O env2
chmod 755 env2

Create the modulefile

./env2 -from bash -to modulecmd "/opt/intel/compilers_and_libraries_2018.2.199/linux/mpi/bin64/mpivars.sh" >> /usr/share/Modules/modulefiles/intelmpi/2018.2

Make sure it was installed correctly:

$ module show intelmpi/2018.2
$ module load intelmpi/2018.2
$ which mpirun
$ mpirun -V

Intel MPI 2019.5/7 Install

2019.5

Not reccomended version.

wget https://raw.githubusercontent.com/intel/mpi/master/scripts/aws_impi.sh
chmod +x ./aws_impi.sh
./aws_impi.sh install -check_efa 0 -version 2019.5
sudo cp /opt/intel/impi/latest/modulefiles/mpi /usr/share/modules/modulefiles/intelmpiu5

2019.7

#!/bin/bash
sudo su -

INTELMPI_VERSION="2019.7.217"
INTELMPI_URL="https://registrationcenter-download.intel.com/akdlm/irc_nas/tec/16546/l_mpi_2019.7.217.tgz"
INTELMPI_VERSION='2019.7.217'
INTELMPI_MODULEFILE="/opt/intel/impi/${INTELMPI_VERSION}/intel64/modulefiles/mpi"
INTELMPI_MODULEFILE_DIR="/opt/intel/impi/${INTELMPI_VERSION}/intel64/modulefiles"

wget $INTELMPI_URL
tar -xf l_mpi_$INTELMPI_VERSION.tgz
cd l_mpi_$INTELMPI_VERSION/
./install.sh -s silent.cfg --accept_eula

# create modulefile
mv $INTELMPI_MODULEFILE $INTELMPI_MODULEFILE_DIR/intelmpi
echo "$INTELMPI_MODULEFILE_DIR" >> /usr/share/Modules/init/.modulespath

exit

Here's a version with the environment variables substituted in:

# run as root
wget https://registrationcenter-download.intel.com/akdlm/irc_nas/tec/16546/l_mpi_2019.7.217.tgz
tar -xf l_mpi_2019.7.217.tgz
cd l_mpi_2019.7.217/
./install.sh -s silent.cfg --accept_eula

# create modulefile
mv /opt/intel/impi/2019.7.217/intel64/modulefiles/mpi /opt/intel/impi/2019.7.217/intel64/modulefiles/intelmpi
echo "/opt/intel/impi/2019.7.217/intel64/modulefiles" >> /usr/share/Modules/init/.modulespath

Now you need to exit and log back in to see the changes in module avail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment