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
607 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
597 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-adviso...

View solution in original post

6 Replies
Gennady_F_Intel
Moderator
598 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-adviso...

Gennady_F_Intel
Moderator
580 Views

you could also take a look at the oneMKL v.2021 Developer Guide follow the link:

https://software.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top/...


Gennady_F_Intel
Moderator
543 Views

Alexander, is there any update here?


AlexKurek
Beginner
520 Views

I think the issue is solved, thank you!

Best regards,
Alex

Gennady_F_Intel
Moderator
505 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. 



kenz095
Beginner
358 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 ?

  

Reply