|
Article ID: 86
Last updated: 17 Mar, 2025
Intel compilers are recommended for building your applications on HECC systems with Intel x86-64 CPUs. There is no default compiler—you must load a specific module. Note: The Intel classic compilers are no longer available in newer versions of the Intel OneAPI toolkits distributions. To see what modules are available, run the module avail command:
In the output, look for the comp-intel/versions entries. Then, load the Intel compiler module you want to use. For example:
When you load a compiler module, some environment variables (such as PATH, CPATH, and LD_LIBRARY_PATH) are set or modified to add the paths to certain commands, include files, or libraries to your environment. This helps to simplify the way you do your work. You can use the module show command check what environment variables will be modified for a particular module. For example:
Intel Compilers for HECC SystemsOn HECC systems, there are Intel compilers for both Fortran and C/C++: Intel Fortran Compiler: ifort (version 8 and above)The ifort command invokes the Intel Fortran Compiler to preprocess, compile, assemble, and link Fortran programs.
Read man ifort for all available compiler options. To see the compiler options by categories, run:
fileN is a Fortran source (.f .for .ftn .f90 .fpp .F .FOR .FTN .FPP .F90 .i .i90), assembly (.s .S), object (.o), static library (.a), or other linkable file. Interpret the suffixes of the Fortran source files as follows:
Intel C/C++ Compiler: icc and icpc Commands (version 8 and above)The Intel C++ Compiler is designed to process C and C++ programs on Intel-architecture-based systems. You can preprocess, compile, assemble, and link these programs.
Read man icc for all available compiler options. To see the compiler options by categories, run:
The icpc command uses the same compiler options as the icc command, with the following differences:
fileN represents a C/C++ source (.C .c .cc .cp .cpp .cxx .c++ .i), assembly (.s), object (.o), static library (.a), or other linkable file. |