Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
7234 Discussions

cmake configure findBLAS.cmake can't find MKL

fbonniwell
Beginner
3,270 Views
Hello,



I ran the mklvars to set env for all the MKL varaibles then ran cmake-gui from the command prompt. When I try to "Configure" I get the following errors.

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake:612 (message):
A required library with BLAS API not found. Please specify library
location.
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindLAPACK.cmake:142 (find_package)
C:/stuff/stuff.cmake:14 (find_package)
CMakeLists.txt:43 (include)

the findBLAS.cmake is calling for sgemm.

Is there a different method for cmake to see MKL?
Please find attached the findBLAS.cmake and findLAPACK.cmake.
FindBLAS.cmake
FindLAPACK.cmake

Software: Intel Parallel Studio XE 2011


Thanks,

F
0 Kudos
4 Replies
Sridevi_A_Intel
Employee
3,270 Views

error says : Requried Library BLAS API not found" ..
So, I'm guessing you need to let your program know where BLAS libraries are installed

Could you please set environment variables:
BLAS_LIB_DIR = path to BLAS libraries
LAPACK_LIB_DIR = path to LAPACK libraries

and then rerun cmake-gui again?

--Sridevi

0 Kudos
fbonniwell
Beginner
3,270 Views
Hello Sridevi,

I tried running the mklvars and setting the BLAS_LIB_DIR and LAPACK_LIB_DIR variables but I recieve the same errors.
0 Kudos
Sridevi_A_Intel
Employee
3,270 Views

FindBLAS.cmake and/or FindLAPACK.cmake are failing to locate your MKL install.

Can you please send me your CMakeLists.txt files? I think we need to specify your environment related information in this file. Which OS (version)are you using?

0 Kudos
barragan_villanueva_
Valued Contributor I
3,270 Views
Hi,

After looking at your FindBLAS.cmake for mkl fragments for Parallel Studio XE 2011:
1) please use iomp5 library instead of guide or guide40
2) don't use one-level mkl_ia32or mkl_em64t which are from old MKL releases but mkl layers: mkl_intel_lp64;mkl_intel_thread;mkl_core or mkl_intel_ilp64;mkl_intel_thread;mkl_core
0 Kudos
Reply