In your MKL installation, do you have the mkl_link_tool in the mkl/tools 
folder? 

Tim 

----- Original Message -----

From: "Andreas Voegel" <[email protected]> 
To: [email protected] 
Sent: Wednesday, February 1, 2012 1:11:02 AM 
Subject: [CMake] Intel MKL with FindBLAS and FindLAPACK on OS X? 

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

Powered by www.kitware.com 

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html 

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ 

Follow this link to subscribe/unsubscribe: 
http://www.cmake.org/mailman/listinfo/cmake 
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to