- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have recently bought and installed Intel® oneAPI Base & HPC Toolkit (Single-Node) and I have a problem using the Math Kernel Library with the Visual Studio 2017 Professional. It builds the solution without any issue but when I run the application, an error occurs: "mkl_intel_thread.1.dll was not found". Could you please send me the solution?
Best regards,
Dr. Elias N. Eliopoulos
University of Patras
Department of Mechanical Engineering and Aeronautics
e-mail: eliopoulos@upatras.gr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We do not know some important details of how you attempt to run, but here is a suggestion to try.
Open an Intel OneAPI command prompt from the Windows Start menu. Navigate to the directory where the EXE that you built is located, and run the EXE there.
If that works, you can make a habit of running Visual Studio from that command window instead of from another shortcut.
You could also adjust the system-wide environment, but there are several drawbacks to doing so.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you please share the oneAPI version installed and try setting these variables in your visual studio:
Environment Variable in the debugging section:
For x64:
PATH=C:\Program Files (x86)\Intel\oneAPI\compiler\2021.2.0\windows\redist\intel64_win\compiler;C:\Program Files (x86)\Intel\oneAPI\mkl\2021.2.0\redist\intel64;%PATH%
For x86:
PATH=C:\Program Files (x86)\Intel\oneAPI\compiler\2021.2.0\windows\redist\ia32_win\compiler;C:\Program Files (x86)\Intel\oneAPI\mkl\2021.2.0\redist\ia32;%PATH%
Debug Mode: x64, x86 accordingly.
Intel Libraries for oneAPI: Use oneMKL and set an appropriate option.
Please let us know if you have any issues.
Regards
Rajesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Rajesh,
Thank you for your quick answer. Unfortunately, your solution does not work.
Best regards,
Elias
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you please share the oneAPI and visual studio version along with screenshot of the error and the visual studio settings used?
Thanks
Rajesh,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you please share any updates regarding your issue?
Regards
Rajesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Rajesh,
The problem remains, see the attached file. I assume I do not set the environment variables correctly. I have installed Visual Studio 2019 Professional, Intel Parallel Studio XE 2020 Update 4, Intel oneAPI Base Toolkit and Intel oneAPI HPC Toolkit ver. 2021.2. Could you please tell me how to set the environment variables for the Intel oneAPI Math Kernel Library correctly?
Thank you for your interest,
Elias
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We do not know some important details of how you attempt to run, but here is a suggestion to try.
Open an Intel OneAPI command prompt from the Windows Start menu. Navigate to the directory where the EXE that you built is located, and run the EXE there.
If that works, you can make a habit of running Visual Studio from that command window instead of from another shortcut.
You could also adjust the system-wide environment, but there are several drawbacks to doing so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear mecej4,
it works! Thank you very much.
Best regards,
Elias
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please refer to the below images for setting the required environment and let us know if you face the same issue. I have set the environment for x64 mode. Add the above mentioned path for x64 in the environment setting.
Regards
Rajesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
First of all, I cannot find the MKL SAMPLE Property Pages. Then, I think I need the full PATHS for the Environment and the Evaluated value. In case you have not understood, I work with FORTRAN, see the attached file.
Best regards,
Elias
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In the case of FORTRAN try enabling the oneMKL in the Libraries section and also if you enable it /Qmkl will be set automatically in your Visual Studio.
If you still face the issue try these steps:
- Open the project property pages (Alt + Enter)
- Change the Configuration to Debug (On the top left corner)
- On the left window, under the Configuration properties tab, click on Debugging.
- Under the Action tab, click on the Environment field and add the following:
PATH=C:\Program Files (x86)\Intel\oneAPI\mkl\latest\redist\intel64;%PATH%
Save the changes and run your executable. Let us know if you face any issues.
Regards
Rajesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for accepting as a solution.
As this issue has been resolved, we will no longer respond to this thread. If you require any additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.
Have a Good day.
Regards
Rajesh

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page