Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Compiling against oneAPI MKL

AlexKurek
Beginner
954 Views

Is there an ease way to compile my code againt latest oneAPI MKL versions as it was possible with "classic" MKL? Im using Ubuntu 18 and 20 and I noticed that MKL package is no longer updated there.

The latest instructions I was able to find is for "classic" MKL:

wget -q --retry-connrefused https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
apt-get update
apt-get install -y intel-mkl-64bit-2020.4-912

0 Kudos
1 Solution
Gennady_F_Intel
Moderator
944 Views

Yes, it is possible with the latest version as well. You may refer to the MKL Linker Adviser to check how you could do that: https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/link-line-advisor.html

View solution in original post

0 Kudos
6 Replies
Gennady_F_Intel
Moderator
945 Views

Yes, it is possible with the latest version as well. You may refer to the MKL Linker Adviser to check how you could do that: https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/link-line-advisor.html

0 Kudos
Gennady_F_Intel
Moderator
890 Views

Alexander, is there any update here?


0 Kudos
AlexKurek
Beginner
867 Views

I think the issue is solved, thank you!

Best regards,
Alex

0 Kudos
Gennady_F_Intel
Moderator
852 Views

This issue has been resolved and we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only. 



0 Kudos
kenz095
Beginner
705 Views

Sorry, give me information, please.

OneAPI was installed to my PC and my source codes were compiled.

Although mpi.h was recognized, an error message "MKL_blacs.lib was not seen" was indicated.

In the intel directory, there were some libraries related to MKL_blacs, such as "MKL_blacs_msmpi_ilp63.lib"   etc, and PATH was set correctly, but  above  "MKL_blacs.lib" was no actually recognized.

How to success to be compiled ?

  

0 Kudos
Reply