[Trilinos-Users] How to set Intel MKL for the blas and lapack?

Baker, Christopher G. bakercg at ornl.gov
Fri May 27 09:34:31 MDT 2011


Hi Shibin Tang,

You shouldn't modify the FindTPLBLAS and FindTPLLAPACK files.

You should enable the BLAS and LAPACK tpls via:
 -DTPL_ENABLE_BLAS:BOOL=ON
 -DTPL_ENABLE_LAPACK:BOOL=ON
You should point to the libraries that you want to use via the following
options:
 -DBLAS_LIBRARY_NAMES="mkl_intel_lp64;mkl_sequential;mkl_core"
 -DBLAS_LIBRARY_DIRS="MKLROOT"
 -DLAPACK_LIBRARY_NAMES=""
 -DLAPACK_LIBRARY_DIRS="MKLROOT"
where MKLROOT points to the appropriate library dir. On my system, this is
 /opt/intel/Compiler/11.1/064/mkl/lib/em64t

These options are for use with the Intel C++ compiler on a 64-bit Linux
system, but using a 32-bit integers with the BLAS/LAPACK interface. You
can determine the appropriate library names by using the following Intel
webpage (the MKL Link Line advisor):
 http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/


This should enable Trilinos to find and test the MKL when you invoke
cmake. If this doesn't work for you, please send the command that you are
using to invoke cmake, as well as the output of Cmake and your
CMakeCache.txt file.

Make sure to undo any changes that you have made to the FindTPLBLAS and
FindTPLLAPACK files.

There may be examples of using MKL with Trilinos under the
 Trilinos/sampleScripts
directory, depending on which version of Trilinos you have.

Chris



On 5/26/11 9:59 PM, "Rocky" <rockydut at gmail.com> wrote:

>Dear Colleagues:
>
>        I compile the Trilinos on Windows with Visual studio 10.0.
>        I configure the project with CMake, and set the blas and lapack
>to Intel MKL.
>        However, the MACRO defines of HAVE_BLAS and HAVE_LAPACK in
>Epetra_config.h never change to #define HAVE_BLAS and #define
>HAVE_LAPACK, which means that it still keeping in #undef HAVE_BLAS and
>#undef HAVE_LAPACK.
>        How can I use the Intel MKL blas and lapack for Trilinos. I try
>to change the FindTPLBLAS.cmake and FindTPLLAPACK.cmake, but never
>succeeded.
>        By the way, my MKL is 10.3 version.
>
>Best regards!
>
>Yours sincerely
>Shibin Tang
>=======================================================
>Center for Rock Instability & Seismicity Research,
>School of Civil and Hydraulic Engineering,
>Dalian University of Technology, Dalian
>P.R.China
>Mail: Rockydut at gmail.com
>Data: 2011-05-27
>Time: 09:50:34
>
>
>_______________________________________________
>Trilinos-Users mailing list
>Trilinos-Users at software.sandia.gov
>blockedhttp://software.sandia.gov/mailman/listinfo/trilinos-users
>
>





More information about the Trilinos-Users mailing list