Skip to content

Intel Compilers

Intel C, C++, and Fortran Compilers


Intel Compilers requires an environment module

In order to use Intel Compilers, you must first load the appropriate environment module:

module load intel

The HPC provides the Intel C/C++ and Fortran compilers. These are the compilers that most applications use.

Supported languages#

Below are the compiler commands for C, C++, and Fortran:

1
2
3
4
5
6
7
8
# C compiler
$ icx

# C++ compiler
$ icpx

# Fortran compiler
$ ifx

Intel compiler tips#

  • To generate highly optimized code, compile using the -03 or -fast flags
  • Supply the -w flag to disable all warnings; use the -Wall flag to enable all warnings
  • Supply the openmp flag to generate code based on OpenMP directives.

Debugging#

The Intel compilers include a debugger:

$ gdb-oneapi

More Information#

For a quick reference of how to use the Intel compilers, add the --help flag to any command:

$ icx --help
$ ifx --help

More detailed information is available on the compilers' manual pages. To access these pages, use the man command:

$ man icpx
$ man ifx

For a comprehensive guide to using the Intel compilers, refer to the official documentation.