Intel compilers

From Peyton Hall Documentation

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
{{inuse|1 hour to add information about the Intel 10.0 compiler}}
Many have found that the compilers from Intel generate faster code than the standard GNU compilers.  We try to keep up with the licensing from Intel so we have somewhat recent versions of the compilers installed, and below you'll find more information about them.
Many have found that the compilers from Intel generate faster code than the standard GNU compilers.  We try to keep up with the licensing from Intel so we have somewhat recent versions of the compilers installed, and below you'll find more information about them.

Revision as of 15:47, 27 September 2007

This article is actively undergoing a major edit for 1 hour to add information about the Intel 10.0 compiler.

As a courtesy, please do not edit this page while this message is displayed. The person who added this notice will be listed in its edit history or has placed their signature above.

If this page has not been edited recently (several hours!), please remove this template (or replace it with {{underconstruction}}).

This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to improve this page.

Many have found that the compilers from Intel generate faster code than the standard GNU compilers. We try to keep up with the licensing from Intel so we have somewhat recent versions of the compilers installed, and below you'll find more information about them.


Contents

Setup

There are multiple versions of the Intel compilers installed. Depending on which version you want to run, you'll need to source some scripts to get all your paths setup properly. Add one of these sets of lines to your shell startup file (.bashrc for bash users, .cshrc for tcsh users).

  • Version 8.1
    • bash
      source /usr/peyton/intel/8.1/icc/bin/iccvars.sh
      source /usr/peyton/intel/8.1/ifc/bin/ifortvars.sh
      source /usr/peyton/intel/8.1/idb/bin/idbvars.sh
    • tcsh
      source /usr/peyton/intel/8.1/icc/bin/iccvars.csh
      source /usr/peyton/intel/8.1/ifc/bin/ifortvars.csh
      source /usr/peyton/intel/8.1/idb/bin/idbvars.csh
  • Version 9.0
    • bash
      source /usr/peyton/intel/9.0/cc/bin/iccvars.sh
      source /usr/peyton/intel/9.0/fc/bin/ifortvars.sh
      source /usr/peyton/intel/9.0/idb/bin/idbvars.sh
    • tcsh
      source /usr/peyton/intel/9.0/cc/bin/iccvars.csh
      source /usr/peyton/intel/9.0/fc/bin/ifortvars.csh
      source /usr/peyton/intel/9.0/idb/bin/idbvars.csh


Use

The Intel compiler suite is installed in /usr/peyton/intel, consisting of the C (icc) and Fortran (ifort) compilers as well as a debugger from Intel.

NOTE:

The compilers may not run on all Linux machines in the building (should be at least RedHat 7.2). Also note that in the case of Hydra, you should probably build statically linked binaries to ensure the libraries needed to execute the program are available on the compute nodes (linker option '-static'). The license we have for the compilers allows for 2 users to compile code simultaneously; if you get an error about compiling, try waiting a few minutes and running the command again.


Source files

The Fortran compiler assumes that the source files are called *.f90 (or else it tries to compile f77, or at least I think that that's what happens). Also, you'll need to add '.SUFFIXES : .f90' to your makefiles, as well as a rule such as '.f90.o:; ifc $(FFLAGS) -c $*.f90'.


Linking

Some users have had to use the linker flag -Vaxlib, otherwise the compiler complained about iargc or get_arg functions. Another issue related to the Intel compilers use on Fedora Core 2 machines is described on the page http://newweb.ices.utexas.edu/misc/ctype.c. This may no longer be an issue, as I think the compiler version that was installed has since been upgraded.

Personal tools