ITS/High Performance Computing Cluster/ Help on Intel Compilers

[edit] Using The Intel Compilers On The ITS HPC Cluster

There are three different versions of the Intel compilers available: 8.0, 8.1, and 10.0. To use a particular version of a particular compiler, load the appropriate module according to the following list:

   C/C++ 8.0 - use module "intel-compilers-8.0"
   FORTRAN 8.0 - use module "intel-compilers-8.0"
   C/C++ 8.1 - use module "intel-compilers-8.1"
   FORTRAN 8.1 - use module "intel-compilers-8.1"
   C/C++ 10.0 - use module "intel-c-10.0"
   FORTRAN 10.0 - use module "intel-f-10.0"

[edit] Compiling a C or C++ Program

To compile the C source file "test.c" with the Intel C compiler, use the command

   icc test.c

To compile the C++ source file "test.cpp" with the Intel C++ compiler, use the command

   icc test.cpp

To compile the C++ source file "test.C" with the Intel C++ compiler, use the command

   icc test.C

Note that the Intel C compiler is used for source files ending in ".c" and the Intel C++ compiler is used for source files ending in ".cpp" or ".C".

[edit] Compiling a FORTRAN Program

To compile the FORTRAN 77 source file "test.f" with the Intel FORTRAN 77 compiler, use the command

   ifort test.f

To compile the FORTRAN 90 source file "test.f90" with the Intel FORTRAN 90 compiler, use the command

   ifort test.f90

Note that the Intel FORTRAN 77 compiler is used for source files ending in ".f" and the Intel FORTRAN 90 compiler is used for source files ending in ".f90".

This article is a stub. You can help by adding to it.

ITS High Performance Cluster Articles
This article is part of the ITS Cluster series of articles
FAQ | Intel compilers | GNU compilers | Portland Group compilers
Intel Math Kernel Library | MINPACK | ScaLAPACK | GSL | FFTW3 | MPICH | NAG
R | Mathematica | NAMD | GROMACS | Amber | MATLAB
FLUENT | GAMESS | Gaussian | MOLCAS | LAMMPS | APBS

Case Referrers

Other Sites
This page has been accessed 3,441 times.
This page was last modified 13:29, October 11, 2007 by Allison Avrich.
About | Disclaimers