Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
6681 Discussions

How to link the BLAS library in mkl to compile other packages

HUANGK
Novice
364 Views

I want to compile the ARPACK++ library, and I downloaded the Intel Fortran Compiler to compile the library. During the compilation process, I was prompted that the BLAS library could not be found. Isn't there a BLAS and LAPACK library in MKL? Why can't I use CMAKE to compile ARPACK directly?

Below is my detail page information

HUANGK_0-1649006114064.png

Your advice is invaluable to me, thank you for your help.

0 Kudos
1 Solution
VidyalathaB_Intel
Moderator
306 Views

Hi,

 

Thanks for reaching out to us.

 

>>Isn't there a BLAS and LAPACK library in MKL?

Yes, Indeed they are part of MKL library.

This oneMKL library is part of oneAPI Base Toolkit but not HPC Toolkit.

So, could you please confirm if you have downloaded the oneAPI Base Toolkit first?

Also, we suggest you try compiling the ARPACK++ library in the Intel oneAPI command prompt where the setvars script is initialized automatically which will ease the process of finding and linking with necessary Intel components accordingly.

A quick check from our end shows that BLAS/LAPACK was found when trying to compile the arpack++ library in Intel oneAPI command prompt.

VidyalathaB_Intel_0-1649050544089.png

You can also do it from the normal windows command prompt but you need to run the setvars.bat file which is under this location C:\Program Files (x86)\Intel\oneAPI manually before starting to build the arpack++ library.

 

Hope the provided information helps.

 

Regards,

Vidya.

 

View solution in original post

3 Replies
VidyalathaB_Intel
Moderator
307 Views

Hi,

 

Thanks for reaching out to us.

 

>>Isn't there a BLAS and LAPACK library in MKL?

Yes, Indeed they are part of MKL library.

This oneMKL library is part of oneAPI Base Toolkit but not HPC Toolkit.

So, could you please confirm if you have downloaded the oneAPI Base Toolkit first?

Also, we suggest you try compiling the ARPACK++ library in the Intel oneAPI command prompt where the setvars script is initialized automatically which will ease the process of finding and linking with necessary Intel components accordingly.

A quick check from our end shows that BLAS/LAPACK was found when trying to compile the arpack++ library in Intel oneAPI command prompt.

VidyalathaB_Intel_0-1649050544089.png

You can also do it from the normal windows command prompt but you need to run the setvars.bat file which is under this location C:\Program Files (x86)\Intel\oneAPI manually before starting to build the arpack++ library.

 

Hope the provided information helps.

 

Regards,

Vidya.

 

HUANGK
Novice
263 Views

Thank you, I have successfully compiled this package using Intel command prompt, thank you for your help.

VidyalathaB_Intel
Moderator
259 Views

Hi,


Thanks for accepting our solution.

As the issue is resolved we are closing this thread. Please post a new question if you need any additional information from Intel as this thread will no longer be monitored.


Have a Nice Day!


Regards,

Vidya.


Reply