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

Why does it link to the WRONG MKL library ?

WSinc
New Contributor I
399 Views

as you can see from this screen shot, it is looking for an entry point that apparently is NOT PRESENT in the dynamic library.

This was selected by the QMKL option, it's supposed to automatically attach the right one, correct ?

 

so I have come to the the tentative conclusion that this version of the library is not compatible with the project that is trying to use it.

So where would the correct version be ?

 

so far, no one seems to know the purpose of that missing entry point. Is that a grandfather routine ?

That would possibly give a better clue as to what is going wrong here.

0 Kudos
2 Replies
mecej4
Honored Contributor III
399 Views

A similar question, involving cgem2vc instead of dgem2vu, was answered at length by Steve Lionel and others in your other thread, https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/785552#comment-1926607. You have posted a number of threads on essentially the same problem.

As long as you have more than one version of the MKL DLLs installed on your PC and have a DLL search path configured to find the incompatible, older MKL DLL first, you will continue to have the same kind of problem.

So far, you have not told us which versions are currently installed and what your environment is. You have also ignored several suggestions that were given to you to resolve the issue.

Starting new threads with fresh descriptions of the same problem is not going to lead you to a solution. I suspect that you have been installing/uninstalling MKL and/or Parallel Studio in between posts during the last couple of weeks, and you should not expect us to keep track of what you have done. Please consider taking the advice given to you and responding to the requests for information -- such as which versions of Parallel Studio and MKL are installed on your PC.

In particular, please review Steve Lionel's pertinent advice in https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/785552#comment-1926607 .

0 Kudos
Ying_H_Intel
Employee
399 Views

Hi Billsincl, 

Your run into the "entry" issue  is because you have different MKL dll version  in the exe search path.  The exe haven't found expected version of DLL as all version of DLL have same names. 

Windows looks for DLLs in the following places (in order):

  1. The current directory
  2. The directory containing the EXE
  3. The Windows directory
  4. The Windows\System32 directory
  5. Directories named in the PATH environment variable (in the order they appear in PATH)

 So for solve this :

1)  run  your exe under command line with correct environment setting, please try 

> open one command line

> cd your exe folder 

>  C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\mkl\bin\mklvars.bat  ia32

(this batch file will make sure the exact  mkl dll in your environment. )

> run your exe.   and please let us know if it works. 

2)  if you want to solve the issue completely. please check your  Path

Windows looks for DLLs in the following places (in order):

  1. The current directory
  2. The directory containing the EXE
  3. The Windows directory
  4. The Windows\System32 directory
  5. Directories named in the PATH environment variable (in the order they appear in PATH

    In more cases,  you may change the environment PATH, remove all of other MKL path in their and add wanted version.  Then restart your Visual  IDE, it is suppose to run.  Please let us know if any issues.  

    Best Regards,
    Ying 
0 Kudos
Reply