[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:
You should point to the libraries that you want to use via the following
where MKLROOT points to the appropriate library dir. On my system, this is

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):

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
directory, depending on which version of Trilinos you have.


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
>        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
>Mail: Rockydut at gmail.com
>Data: 2011-05-27
>Time: 09:50:34
>Trilinos-Users mailing list
>Trilinos-Users at software.sandia.gov

More information about the Trilinos-Users mailing list