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.dThen install the basekit and hpckit:
sudo yum install intel-basekit
sudo yum install intel-hpckitNow 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.shThen 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/.modulespathThen log out and log in again to see the changes.