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

Intel® oneAPI Base Toolkit v. 2024.1 Error - 'mkl_blacs_ilp64.lib' cannot be opened

DucVinhNguyen
Beginner
777 Views

Hello,

When compile a C++ program in VS Pro 2022 with OneAPI Base Toolkit v. 2024.1, I encounter the following error:

fatal error LNK1104: mkl_blacs_ilp64.lib' can not be opened 

Looking into the folder C:\Program Files (x86)\Intel\oneAPI\mkl\2024.1\lib, there is no such file but mkl_blacs_lp64_dll.lib.

Other files systematically have a .lib and a _dll.lib version, such as mkl_cdft_core.lib and mkl_cdft_core_dll.lib.

Is this a bug in the latest version ? Where I can download the missing file?

Repair tool does not help.

Thanks for your help,

Labels (2)
0 Kudos
3 Replies
DucVinhNguyen
Beginner
688 Views

More info : 

Although the "mkl_blacs_ilp64_file" variable in "CMakeSettings.json" was set to "mkl_blacs_ilp64_dll.lib", building stills looks for the file "mkl_blacs_ilp64.lib" which does not exist.

Is there anyone who can help me?

 

0 Kudos
Gennady_F_Intel
Moderator
414 Views

You might try to explicitly link against specific MPI libraries supported by windows version of oneMKL, which are

Intel MPI and MS MPI.

Please take a look at the MKL Linker Adviser:

https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html

 

for example for ILP64 API you need link against the following libs:

Intel IntelMPI:

mkl_intel_ilp64.lib mkl_intel_thread.lib mkl_core.lib mkl_blacs_intelmpi_ilp64.lib libiomp5md.lib impi.lib

 

MSMPI:

 mkl_intel_ilp64.lib mkl_intel_thread.lib mkl_core.lib mkl_blacs_msmpi_ilp64.lib libiomp5md.lib msmpi.lib

 

--Gennady

0 Kudos
Gennady_F_Intel
Moderator
412 Views

and also you could look at the Developer Guide for Windows

https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-windows/2024-1/linking-with-onemkl-cluster-software.html

where you could find out tips describing how to link with OneMKL Cluster Software.

Quote  " The BLACS library corresponding to your , programming interface (LP64 or ILP64), and MPI version. These libraries are listed in Appendix C: Directory Structure in Detail. For example, for the LP64 interface, choose one of mkl_blacs_intelmpi_lp64.lib, or mkl_blacs_msmpi_lp64.lib in the case of static linking and mkl_blacs_lp64_dll.lib in the case of dynamic linking. "

--Gennady

0 Kudos
Reply