# Setup Intel oneAPI Toolkits 1. Download the latest version of Intel oneAPI Toolkits. It is `2024.2.1` at the time of writing. I use them for HPC, so I download the [Base Toolkit](https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html) and the [HPC Toolkit](https://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit-download.html). ```bash wget "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/e6ff8e9c-ee28-47fb-abd7-5c524c983e1c/l_BaseKit_p_2024.2.1.100_offline.sh" wget "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/d461a695-6481-426f-a22f-b5644cd1fa8b/l_HPCKit_p_2024.2.1.79_offline.sh" ``` 2. Install Intel oneAPI Toolkits. They will be installed to `/opt/intel/oneapi`. ```bash sudo sh "l_BaseKit_p_2024.2.1.100_offline.sh" -r yes -a --action install --eula accept --silent sudo sh "l_HPCKit_p_2024.2.1.79_offline.sh" -r yes -a --action install --eula accept --silent ``` 3. Generate `modulefiles` for use with [Lmod](https://hackmd.io/@stargazerwang/ryOsp7F4T). ```bash sudo "/opt/intel/oneapi/modulefiles-setup.sh" --output-dir="/opt/intel/modulefiles" ``` 4. Add `modulefiles` to `MODULEPATH`. ```bash echo "/opt/intel/modulefiles" | sudo tee -a "/etc/lmod/.modulespath" > /dev/null ``` 5. Log out and log in again. Then, check if `module` works. For example, ```bash module avail -------------------------------------------------------------------------------------------- /opt/intel/modulefiles --------------------------------------------------------------------------------------------- advisor/latest compiler-rt/latest debugger/latest dpl/latest intel_ipp_intel64/latest mkl32/latest vtune/latest advisor/2024.2 (D) compiler-rt/2024.2.1 (D) debugger/2024.2.1 (D) dpl/2022.6 (D) intel_ipp_intel64/2021.12 (D) mkl32/2024.2 (D) vtune/2024.2 (D) ccl/latest compiler-rt32/latest dev-utilities/latest ifort/latest intel_ippcp_ia32/latest mpi/latest ccl/2021.13.1 (D) compiler-rt32/2024.2.1 (D) dev-utilities/2024.2.0 (D) ifort/2024.2.1 (D) intel_ippcp_ia32/2021.12 (D) mpi/2021.13 (D) compiler-intel-llvm/latest compiler/latest dnnl/latest ifort32/latest intel_ippcp_intel64/latest tbb/latest compiler-intel-llvm/2024.2.1 (D) compiler/2024.2.1 (D) dnnl/3.5.0 (D) ifort32/2024.2.1 (D) intel_ippcp_intel64/2021.12 (D) tbb/2021.13 (D) compiler-intel-llvm32/latest compiler32/latest dpct/latest intel_ipp_ia32/latest mkl/latest tbb32/latest compiler-intel-llvm32/2024.2.1 (D) compiler32/2024.2.1 (D) dpct/2024.2.0 (D) intel_ipp_ia32/2021.12 (D) mkl/2024.2 (D) tbb32/2021.13 (D) ```
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.