Intel compilers

From Cncz
Revision as of 01:54, 14 October 2013 by Gerritg (talk | contribs) (Add comment about
Jump to navigation Jump to search

Om de Intel compilers te gebruiken moeten er een aantal omgevingsvariabelen gezet zijn, voor csh gebruikers kan dit eenvoudig door het commando:

source /opt/intel/bin/ifortvars.csh intel64

op te nemen in .cshrc

voor mensen met bash, voeg de volgende regel

source /opt/intel/bin/ intel64

toe aan .bash_rc


Compiling Fortran (/opt/intel/bin/ifort)

Math Kernel Library (mkl, linking blas, lapack)

Intel Cluster Studio 2011

How to create a standalone MKL version of BLAS and LAPACK shared libraries ?

This is described in detail in Building Custom Shared Objects

  • Create a new directory (e.g. ~/lib)
 mkdir ~/lib
 cd ~/lib
  • Copy these files:
 cp /opt/intel/composerxe/mkl/tools/builder/{makefile,blas_list,lapack_list} ~/lib
  • Set the MKLROOT variable (in bash):
 export MKLROOT

In tcsh use:

 setenv MKLROOT /opt/intel/mkl
  • Make the shared libraries and
 make libintel64 export=blas_list interface=lp64  threading=parallel name=libblas_mkl
 make libintel64 export=lapack_list interface=lp64  threading=parallel name=liblapack_mkl

The options are described here

The newly created and require


to work. On the cluster nodes this file is automatically linked when required.