Loading Intel oneAPI

  • moduleintel/oneAPI/2024.2
  • moduletbb/latest
  • modulecompiler-rt/latest
  • modulecompiler/latest
  • modulemkl/latest
  • modulempi/latest
Tip: load modules inside your SLURM job script, not just on the login node, so compute nodes see the same environment. Verify with which after loading.

Commands

  • icxNew LLVM-based Intel C compiler
  • icpxNew LLVM-based Intel C++ compiler
  • ifxNew LLVM-based Intel Fortran compiler
  • iccClassic Intel C compiler
  • icpcClassic Intel C++ compiler
  • ifortClassic Intel Fortran compiler
  • mpiicx / mpiicpx / mpiifxMPI wrappers for the new Intel compilers
  • mpiicc / mpiicpc / mpiifort / mpicc / mpicxx / mpifortMPI wrappers for classic Intel and GCC compilers

Example usage

Load the Intel oneAPI stack

module load intel-stack

Compile with the new LLVM-based compilers

icx myprogram.c -o myprogram
icpx myprogram.cpp -o myprogram
ifx myprogram.f90 -o myprogram

Compile with the classic Intel compilers

icc myprogram.c -o myprogram
icpc myprogram.cpp -o myprogram
ifort myprogram.f90 -o myprogram

Availability

Intel oneAPI is available on: SeaWulf, ClinWulf.