Provided Compilers
Compilers are available on Hammer for Fortran, C, and C++. Compiler sets from Intel and GNU are installed.
Detailed documentation on each compiler set available on Hammer follows.
On Hammer, the following set of compiler and libraries for building code are recommended:
- Intel 17.0.1.132
- MKL
To load the recommended set:
$ module load rcac
$ module list
More information about using these compilers:
GNU Compilers
The official name of the GNU compilers is "GNU Compiler Collection" or "GCC". To discover which versions are available:
$ module avail gcc
Choose an appropriate GCC module and load it. For example:
$ module load gcc
An older version of the GNU compiler will be in your path by default. Do NOT use this version. Instead, load a newer version using the command module load gcc.
Language | Serial Program | OpenMP Program |
---|---|---|
Fortran77 |
|
|
Fortran90 |
|
|
Fortran95 |
|
|
C |
|
|
C++ |
|
|
More information on compiler options appear in the official man pages, which are accessible with the man command after loading the appropriate compiler module.
For more documentation on the GCC compilers:
Intel Compilers
One or more versions of the Intel compiler are available on Hammer. To discover which ones:
$ module avail intel
Choose an appropriate Intel module and load it. For example:
$ module load intel
Language | Serial Program | OpenMP Program |
---|---|---|
Fortran77 |
|
|
Fortran90 |
|
|
Fortran95 | (same as Fortran 90) | (same as Fortran 90) |
C |
|
|
C++ |
|
|
More information on compiler options appear in the official man pages, which are accessible with the man command after loading the appropriate compiler module.
For more documentation on the Intel compilers: