- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just installed 2024.0. When I run C++ native unit tests using the Microsoft test runner, I get the following message for any unit test project that includes MKL:
"Failed to set up the execution context to run the test"
Normally this message is generated when DLLs are missing, but the program is in the same folder as the test DLL, and the program runs. It's just the tests that fail. The tests ran with 2023.2.
Any tips on what else to look for? Or what files to upload for help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stephen,
we don’t have an ideas about the cause of the problem. It looks that the cause of the problem is beyond of MKL.
Btw, MKL doesn’t test/validate under MSTest Runner GUI at all. The only GUI which MKL cares about is MVSC ( supported version are 2019 and 2022). Here is the link to the current MKL System requirements which declares all support system configurations.
Checking the problem you reported under VS 2022, I see no problem when linking the mkl’s examples when linking against MKL dynamically or statically. Everything works as expected.
You might try to build statically against MKL and check if the problem will gone….
--Gennady
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stephen,
we don’t have an ideas about the cause of the problem. It looks that the cause of the problem is beyond of MKL.
Btw, MKL doesn’t test/validate under MSTest Runner GUI at all. The only GUI which MKL cares about is MVSC ( supported version are 2019 and 2022). Here is the link to the current MKL System requirements which declares all support system configurations.
Checking the problem you reported under VS 2022, I see no problem when linking the mkl’s examples when linking against MKL dynamically or statically. Everything works as expected.
You might try to build statically against MKL and check if the problem will gone….
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for responding. I made a few seemingly innocuous changes to the project file, made sure I had the correct DLLs in place, restarted VS 2022, rebooted, probably did some other things, and now the tests run on my work computer but not my work-from-home computer. I'll try linking statically and see if that gives me any clues.

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