skip to content
 

The Intel Fortran compiler (ifort) is a highly optimizing Fortran compiler for Intel CPUs. Code produced by this compiler may also be run on x86 compatible CPUs such as those from AMD.

Availability: 

All managed Linux workstations and compute clusters, but use is logged and groups using the compiler are asked for a contribution towards the cost of renewing the licence each year. This is usually fairly modest. Contact support@ch.cam.ac.uk if you would like to see the most recent prices.

Instructions for users: 

If you are using the modules environment then you just need to load the appropriate module. It may be loaded for you already.  The name of the module is icc because our package also includes the Intel C/C++ compiler. The name of the compiler program itself is ifort. So for example

$ module add icc
$ ifort --version
ifort (IFORT) 18.0.5 20180823
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.

There are usually multiple versions of the compiler installed on any given machine, as Intel release a new one fairly often. If you use modules you can easily switch between different versions (see the modules documentation).

Licence Details: 

This is commercial licence-managed software. However Intel allows students to register for a free single-user single-machine licence. This cannot cover everyone in the department as many people are not students according to Intel's definition. We therefore have purchased an academic network licence for the department. This allows anyone to use the compiler provided the licence server is available and has a free licence. You do not need the licence in order to run the binaries that the compiler produces, only to compile. You may redistribute the binaries produced, and you may also redistribute with them certain runtime libraries from the compiler suite. A full list of redistributable files may be found in the licenses/fredist.txt file in the compiler's install directory.

Documentation: 

The compiler comes with manpages. You may need to load the module to make the manpage available. However most of the documentation is in HTML and PDF form in the doc subdirectory of the compiler's install directory. You will have to use a web browser or PDF reader to view it. A good place to start is the file fcompindex.html.

Source: 

The compiler is downloadable from https://software.intel.com/en-us/parallel-studio-xe .

Admin notes: 

Version 16 and up (aka Composer XE 2016 and up)

See /usr/local/shared/sbin/install-intel-<year>.sh on a managed workstation.

Path to DEBS changed to /var/www/html/local-debs for Ubuntu 16.04.

Script should now remove $INSTALLDIR/.scripts directory in its clean tasks and make all .png files in & below $BASEDIR/uninstall/images world-readable.

Version 14 and up (aka 2013 SP1 and up)

See /usr/local/shared/sbin/install-intel-2015.sh on a managed workstation.

Version 13 and 14 (aka 2013 and 2013 SP1)

  1. Make sure you have LM_LICENSE_FILE set to point to our licence server (if in doubt, load an icc module)
  2. Download the full install package for both the Fortran and C compilers
  3. On a managed Linux machine mount /usr/local/shared readwrite
  4. Unpack the C compiler. Run ./install.sh
  5. Accept the licence
  6. When prompted to select a licence, pick the option 'Use existing license' . If you get asked about activating then we are going to use an existing licence to activate.
  7. Pick 'Custom install'
  8. When offered the choice of Full or Custom install, pick Custom again
  9. You will be offered a whole list of products to install. Select the 64-bit compilers only, otherwise install everything
  10. When asked for a location give /usr/local/shared/intel . The installer will append a version-specific directory.
  11. The prerequisite check will fail; select the 'Skip missing optional pre-requisites' option.
  12. After the C compiler has oinstalled, unpack the Fortran compiler.
  13. Run ./install.sh
  14. This time it will detect that C is alreayd installed and use the same location
  15. After the Fortran compiler has installed, run /usr/local/shared/sbin/install-intel-13.sh /usr/local/shared/intel/whatever to fix up driver scripts.
  16. Update workstation module packages
  17. Make cluster modules in /usr/local/shared/intel/modules
  18. Test the compiler works. Either /usr/local/shared/sbin/testcompiler.sh icc ifort
  19. Set up MKL modules
  20. Build MKL interfaces

Version 11.1

It's all changed again.

  1. Download the full install package for both the Fortran and C compilers
  2. On a standard Linux workstation either mount the NFS filesystem readwrite or throw away the /usr/local/shared symlink and create a /usr/local/shared/intel directory. make it writable by your ordinary user account.
  3. Make sure you have LM_LICENSE_FILE set to point to our licence server (if in doubt, load an icc module)
  4. Unpack the compilers and run install.sh. You must install them BOTH, C AND Fortran.
  5. Read and accept the licence
  6. When prompted to select a licence, pick the option 'Use existing license' . If you get asked about activating then we are going to use an existing licence to activate.
  7. Pick 'Custom install'
  8. When offered the choice of Full or Custom install, pick Custom again
  9. You will be offered a whole list of products to install. Select the 32 and 64-bit compilers and debuiggers, but deselect the Math Kernel Library, Threading Building Blocks, and Performance Primitives
  10. When asked for a location give /usr/local/shared/intel/Compiler/11.0/074 (replacing the numbers with the appropriate ones for the compiler release)
  11. The prerequisite check will fail; select the 'Skip missing optional pre-requisites' option.
  12. When it has finished installing run /usr/local/shared/sbin/install-intel-11.1-compilers.sh to complete the next few steps in this list about editing/renaming files
  13. When it has finished installing edit {icc,ifort,icpc}.cfg to include the magic Xlinker -rpath -Xlinker /usr/local/shared/intel/Compiler/11.1/038/lib/archdir -I /usr/local/shared/intel/Compiler/11.1/038/include -I /usr/local/shared/intel/Compiler/11.1/038/include/archdir . archdir should be replaced with intel64 or ia32 as appropriate. The compiler directory should be changed as appropriate.
  14. Rename ifort, icc, and icpc to have .bin on the end. Make a shell script:

     compiler=`/usr/bin/basename $0` exec -a $0 /usr/local/shared/intel/Compiler/11.1/038/bin/ia32/$compiler.bin ${LIBRARY_PATH:+-Xlinker -rpath -Xlinker $LIBRARY_PATH} "$@" 

    and link it to those three names

  15. Test the compiler with /usr/local/shared/sbin/testcompilers.sh
  16. If you're working on a local disk, copy it up to the NFS server, remove local copy, restore symlink. Don't forget to chown it to root if you weren't installing as root.

Version 11.0

The way the compiler was distributed changed with version 11.0, which has changed the install location and the way we install.

  1. Download the full install package, containing the compiler for both 32 and 64-bit machines.
  2. On a standard Linux workstation throw away the /usr/local/shared symlink and create a /usr/local/shared/intel directory. make it writable by your ordinary user account.
  3. Make sure you have LM_LICENSE_FILE set to point to our licence server (if in doubt, load an icc module)
  4. Unpack the compiler and run install.sh as your regular user account.
  5. Select the option to ' Install as current user to limit access to user level'
  6. Read and accept the licence
  7. When prompted to select a licence, pick the option 'Use existing license'
  8. Pick 'Custom install'
  9. When offered the choice of Full or Custom install, pick Custom again
  10. You will be offered a whole list of products to install. Select the 32 and 64-bit compilers and debuiggers, but deselect the Math Kernel Library, Threading Building Blocks, and Performance Primitives
  11. When asked for a location give /usr/local/shared/intel/Compiler/11.0/074 (replacing the numbers with the appropriate ones for the compiler release)
  12. If you are installing on OpenSuSE the prerequisite check will fail; select the 'Skip missing optional pre-requisites' option.
  13. When the compiler has installed, install the C/C++ compiler that goes with it if you haven't already, then run the /usr/local/shared/sbin/install-intel-11-compiler.sh script to fix up the compiler wrappers.
  14. Test the compiler with /usr/local/shared/sbin/testcompilers.sh
  15. Copy the compiler up to the NFS server and remove the workstation copy; put the symlink back
  16. Make modules for the compiler. You need to link them to the icc-11 and ifort-11 basefiles, not the icc and ifort ones
  17. The debugger comes as part of the compiler and we don't install it separately so there is no need to make a debugger module. You do need to check the 64-bit debugger works- it is quite likely not to as the Java JRE on the 64-bit workstations is a 32-bit binary (to go with the 32-bit Firefox to go with the 32-bit Flash player). In that case edit the idb script and add /usr/local/shared/java/x86_64/jre1.6.0_11/bin to the start of the PATH variable. The installer should do this for you.

 

Can't find what you're looking for?

Then you might find our A-Z site index useful. Or, you can search the site using the box at the top of the page, or by clicking here.