Intel Compilers

The Intel compilers for both C/C++ and FORTRAN.

Availability & Restrictions

The Intel Compilers areavailable to all OSC users without restriction.

The following version are available:

Version Glenn Oakley
9.1 X  
10.0 X  
10.0.023 X  
11.1 X  
11.1.056 X  
12.1.0   X
12.1.4.319   X
13.0.1.117  

X

13.1.2.183   X

 

 

Usage

Set-up

To load the intel compilers on the Glenn system, use the following command:

module load intel-compilers-11.1

To load the intel compilers on the Oakley system, use the following command:

module load intel

NOTE: You will need to unload any other compilers before loading the intel compiler packages.

Using the Intel Compilers

Once the intel compiler module has been loaded, the compilers are available for your use. The following table lists common compiler options available in all languages.

Compiler option Purpose
-c Compile only; do not link
-DMACRO[=value] Defines preprocessor macro MACRO with optional value (default value is 1)
-g Enables debugging; disables optimization
-I/directory/name Add /directory/name to the list of directories to be searched for #include files
-L/directory/name Adds /directory/name to the list of directories to be searched for library files
-lname Adds the library libname.a or libname.so to the list of libraries to be linked
-o outfile Names the resulting executable outfile instead of a.out
-UMACRO Removes definition of MACRO from preprocessor
-O0 Disable optimization
-O1 Light optimization
-O2 Heavy optimization (default)
-O3 Aggressive optimization; may change numerical results
-ipo Inline function expansion for calls to procedures defined in separate files
-funroll-loops Loop unrolling
-parallel Automatic parallelization
-openmp Enables translation of OpenMP directives

 

The following table lists some options specific to C/C++

-strict-ansi Enforces strict ANSI C/C++ compliance
-ansi Enforces loose ANSI C/C++ compliance

The following table lists some options specific to Fortran

-convert big_endian Use unformatted I/O compatible with Sun and SGI systems
-convert cray Use unformatted I/O compatible with Cray systems
-i8 Makes 8-byte INTEGERs the default
-module /dir/name Adds /dir/name to the list of directories searched for Fortran 90 modules
-r8 Makes 8-byte REALs the default
-fp-model strict Disables optimizations that can change the results of floating point calculations

Further Reading

See Also

Supercomputer: 
Service: 
Technologies: 
Fields of Science: