[CMake] Intel MKL with FindBLAS and FindLAPACK on OS X?

Andreas Voegel andreasvoegel at gmail.com
Wed Feb 1 01:11:02 EST 2012


I am trying to include Intel's MKL in my project by including the following
in my CMakeLists.txt file:

set( ENV{BLA_VENDOR} "Intel10_64lp" )
find_package (LAPACK)

Unfortunately, when I execute cmake I receive the following errors:
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.

If I instead use set( ENV{BLA_VENDOR} "Apple" ) in my CMakeLists.txt file,
the Accelerate framework is successfully located. This, of course, leads me
to believe that FindBLAS.cmake and/or FindLAPACK.cmake fail to locate my
MKL install.

The contents of my DYLD_LIBRARY_PATH environment variable
are: /opt/intel/composer_xe_2011_sp1.8.269/compiler/lib:/opt/intel/composer_xe_2011_sp1.8.269/compiler/lib/intel64:/opt/intel/composer_xe_2011_sp1.8.269/ipp/../compiler/lib:/opt/intel/composer_xe_2011_sp1.8.269/ipp/lib:/opt/intel/composer_xe_2011_sp1.8.269/compiler/lib:/opt/intel/composer_xe_2011_sp1.8.269/mkl/lib:/opt/intel/composer_xe_2011_sp1.8.269/tbb/lib

Is there anything special I need to do to get FindLAPACK to locate my
install? Is there some way I can force cmake to give me more information to
help debug this problem?

Thank you for your advice.

Best regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120201/16e99b09/attachment.htm>


More information about the CMake mailing list