Difference between revisions of "Intel compilers"
(→Compiling Fortran (/opt/intel/bin/ifort): remove dead link) |
(Creating MKL BLAS and LAPACK shared libraries) |
||
Line 27: | Line 27: | ||
* [http://www.theochem.ru.nl/ics/2011.0.013/doc/Doc_Index.htm Intel Cluster Studio 2011 for Linux* OS - index to all local documentation] | * [http://www.theochem.ru.nl/ics/2011.0.013/doc/Doc_Index.htm Intel Cluster Studio 2011 for Linux* OS - index to all local documentation] | ||
* [http://www.theochem.ru.nl/mpi/Doc_Index.html Intel® MPI Library for Linux OS Documentation Index] | * [http://www.theochem.ru.nl/mpi/Doc_Index.html Intel® MPI Library for Linux OS Documentation Index] | ||
+ | |||
+ | === How to create a standalone MKL version of BLAS and LAPACK shared libraries ? === | ||
+ | This is described in detail in [http://www.theochem.ru.nl/composerxe/Documentation/en_US/mkl/mkl_userguide/MKL_UG_linking_your_application/Building_a_Custom_Shared_ObjectsDLLDynamically_Linked_Shared.htm 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): | ||
+ | |||
+ | MKLROOT=/opt/intel/mkl | ||
+ | export MKLROOT | ||
+ | |||
+ | In tcsh use: | ||
+ | |||
+ | setenv MKLROOT /opt/intel/mkl | ||
+ | |||
+ | * Make the shared libraries libblas_mkl.so and liblapack_mkl.so | ||
+ | |||
+ | 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 [http://www.theochem.ru.nl/composerxe/Documentation/en_US/mkl/mkl_userguide/MKL_UG_linking_your_application/Specifying_Makefile_Parameters.htm here] | ||
[[Category:Software]] | [[Category:Software]] |
Revision as of 00:45, 14 October 2013
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/ifortvars.sh intel64
toe aan .bash_rc
Contents
Documentation
Compiling Fortran (/opt/intel/bin/ifort)
- Intel Fortran Composer XE 2011 Getting Started Tutorials
- Intel Fortran Compiler XE 12.0 User and Reference Guides
Math Kernel Library (mkl, linking blas, lapack)
Intel Cluster Studio 2011
- Intel Cluster Studio 2011 for Linux* OS - index to all local documentation
- Intel® MPI Library for Linux OS Documentation Index
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):
MKLROOT=/opt/intel/mkl export MKLROOT
In tcsh use:
setenv MKLROOT /opt/intel/mkl
- Make the shared libraries libblas_mkl.so and liblapack_mkl.so
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