Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jirina
Beginner
79 Views

VS 2019 Debugger reports missing dll and does not start!

Jump to solution

I installed oneAPI 2021.1, I was able to compile and link my project that uses MKL, however, as soon as I start debugging, a system error is issued: "The code execution cannot proceed because mkl_intel_thread.1.dll was not found. Reinstalling the program may fix the problem."

I am using Visual Studio 2019 and I did not get this error with Parallel Studio XE 2020 Update 4. PS XE 2020 was uninstalled, computer restarted, then oneAPI installed, computer restarted, so I currently have only oneAPI.

What should I do to make debugging work with oneAPI?

These are compiler settings for my project: /nologo /debug:full /MP /Od /I"%MKLROOT%" /I"\include" /fixed /extend_source:132 /Qopenmp /fpscomp:general /Qdiag-disable:8290,8291,5462,10434 /warn:declarations /warn:truncated_source /warn:noalignments /warn:interfaces /assume:byterecl /module:"x64\Debug\\" /object:"x64\Debug\\" /Fd"x64\Debug\vc160.pdb" /traceback /check:pointer /check:bounds /check:uninit /check:format /check:output_conversion /check:stack /libs:dll /threads /dbglibs /Qmkl:parallel /c

These are linker settings: /OUT:"x64\Debug\MyApp.exe" /INCREMENTAL:NO /NOLOGO /DELAYLOAD:"MyAppx64.dll" /MANIFEST /MANIFESTFILE:"x64\Debug\MyApp.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"D:\Test\x64\Debug\MyApp.pdb" /SUBSYSTEM:CONSOLE /STACK:1000000000 /IMPLIB:"D:\Test\x64\Debug\MyApp.lib" delayimp.lib ..\DLL\x64\MyAppx64.lib mkl_intel_lp64_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib libiomp5md.lib

0 Kudos

Accepted Solutions
mecej4
Black Belt
60 Views

As a temporary workaround, open the OneAPI Intel64 command window from the Start menu, and try to run the EXE that you wish to debug. If it runs, and you do not see the message about the DLL not being found, all that you have to do is to start VS from that command window by typing the command DEVENV, rather than from elsewhere such as a shortcut on the desktop or from the Start menu.,

If this suggestion works out, you can add the path to the DLL in question (i.e., add ...\OneAPI\mkl\latest\redist\intel64) to the effective run time path in the project properties.

View solution in original post

3 Replies
mecej4
Black Belt
61 Views

As a temporary workaround, open the OneAPI Intel64 command window from the Start menu, and try to run the EXE that you wish to debug. If it runs, and you do not see the message about the DLL not being found, all that you have to do is to start VS from that command window by typing the command DEVENV, rather than from elsewhere such as a shortcut on the desktop or from the Start menu.,

If this suggestion works out, you can add the path to the DLL in question (i.e., add ...\OneAPI\mkl\latest\redist\intel64) to the effective run time path in the project properties.

View solution in original post

jirina
Beginner
46 Views

Thank you very much for pointing me in the right direction. Your suggestion to start VS from the OneAPI Intel64 command window made Debugger work well. Adding the path to missing DLLs to project properties (Debugging -> Environment) worked well too.

RahulV_intel
Moderator
22 Views

Hi @jirina,

 

Thanks for reporting this issue. The issue is reproducible. Thanks to @mecej4  for providing the workaround. Please note that I have escalated this issue to the concerned team to get it fixed.

 

Regards,

Rahul