From cddd2ec724e4a8e3346121efeaadc8002b5d8c26 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 29 May 2012 21:22:30 +0000 Subject: [PATCH] Updated some documentation for using the Intel compiler and MKL --- doc/sphinx/compiling.rst | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/doc/sphinx/compiling.rst b/doc/sphinx/compiling.rst index 7bff96ac1..3cefad985 100644 --- a/doc/sphinx/compiling.rst +++ b/doc/sphinx/compiling.rst @@ -216,9 +216,26 @@ Intel Compilers env_vars=all +* If you want to use the Intel MKL versions of BLAS and LAPACK, you will need + to provide additional options. The following are typically correct on + 64-bit Linux systems:: + + blas_lapack_libs=mkl_rt blas_lapack_dir=$(MKLROOT)/lib/intel64 + Your final SCons call might then look something like:: - scons build env_vars=all CC=icc CXX=icpc F90=ifort F77=ifort + scons build env_vars=all CC=icc CXX=icpc F90=ifort F77=ifort blas_lapack_libs=mkl_rt blas_lapack_dir=$(MKLROOT)/lib/intel64 + + When installing Cantera after building with the Intel compiler, the normal + method of using ``sudo`` to install Cantera will not work because ``sudo`` + does not pass the environment variables needed by the Intel compiler. + Instead, you will need to do something like:: + + scons build ... + sudo -s + source /path/to/compilervars.sh intel64 + scons install + exit Compile Cantera & Test ======================