Skip to main content

Compilers

Hyak provides multiple compiler versions for C, C++, and Fortran on each system. Compilers are available through environment modules and should be loaded before building software.

Available compiler versions may change over time. Use module spider <compiler> or module avail to confirm which modules are currently available.

For MPI builds, load an MPI module and compile with MPI compiler wrappers. See MPI for details.

note

Klone uses a flat module structure, so compiler modules are visible without loading another module first.

The following base compiler families are supported on Klone:

VendorModuleCompilers
GNUgccC: gcc
C++: g++
Fortran: gfortran
Intelintel/oneAPIC: icx
C++: icpx
Fortran: ifx
NVIDIAnvhpcC: nvc
C++: nvc++
Fortran: nvfortran
AMDaoccC: clang
C++: clang++
Fortran: flang

GNU Compiler Collection (GCC)

The latest GNU Compiler Collection (GCC) module on Klone is version 15.2.

module load gcc/15.2.0

Older GCC versions are also available, including some combinations with MPI support. Additional modules prefixed with contrib may also appear; these are community-provided and maintained by their owners.

gcc/9.3.0
gcc/10.2.0
gcc/11.2.0 (D)
gcc/12.3.0
gcc/13.2.0
gcc/15.2.0

Intel Compiler

The latest Intel compiler suite on Klone is version 2026.0.0. This module is provided as part of the Intel oneAPI suite.

module load intel/oneAPI/2026.0.0
MPI workflows

For Intel oneAPI MPI workflows on Klone, use intel/oneAPI/2026.0.0. Older oneAPI modules have shown MPI-related segmentation fault errors with the current Klone kernel. The 2026 release also removes the legacy icc, icpc, and ifort compilers; use icx, icpx, and ifx instead. For more background, see the June 2026 update.

NVIDIA Compiler

The latest NVIDIA compiler suite on Klone is version 24.5. This module is provided as part of the NVIDIA HPC SDK.

module load nvhpc/24.5

CUDA Compiler Driver

The CUDA compiler driver, nvcc, is used to compile CUDA code. The latest CUDA module on Klone is version 12.9.1.

module load cuda/12.9.1

There are older CUDA versions available.

AOCC Compiler

The AOCC (AMD Optimizing C/C++ Compiler) suite is based on LLVM and includes optimizations for AMD processors. The latest AOCC compiler module on Klone is version 4.2.0.

module load aocc/4.2.0