Skip to content

Instantly share code, notes, and snippets.

@sean-smith
Created September 3, 2020 21:32
Show Gist options
  • Save sean-smith/6db7534842325ecc4d4a9e6ece4c263d to your computer and use it in GitHub Desktop.
Save sean-smith/6db7534842325ecc4d4a9e6ece4c263d to your computer and use it in GitHub Desktop.
Steps to install the Intel Compiler (ICC) using OneAPI

Intel oneAPI for AWS ParallelCluster

First setup yum to get the right repo:

tee > /tmp/oneAPI.repo << EOF
[oneAPI]
name=Intel(R) oneAPI repository
baseurl=https://yum.repos.intel.com/oneapi
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
EOF

sudo mv /tmp/oneAPI.repo /etc/yum.repos.d

Then install the basekit and hpckit:

sudo yum install intel-basekit
sudo yum install intel-hpckit

Now the packages are installed in /opt/intel/oneapi. Note: by default /opt/intel is shared out by parallelcluster so you don't need to worry about exporting the directory to the compute nodes.

The compiler is here: /opt/intel/oneapi/compiler/latest.

It's unclear how exactly to setup the modulefiles, there's a script that looks like it does it here:

sudo bash /opt/intel/oneapi/modulefiles-setup.sh

Then you need to set the modulefile path correctly. For ICC, i did:

sudo su
echo "/opt/intel/oneapi/compiler/latest/modulefiles" >> /usr/share/Modules/init/.modulespath

Then log out and log in again to see the changes.

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