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

VS2022 Test Runner Fails with 2024.0

Eckhardt__Stephen
884 Views

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?

0 Kudos
1 Solution
Gennady_F_Intel
Moderator
830 Views

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


View solution in original post

0 Kudos
2 Replies
Gennady_F_Intel
Moderator
831 Views

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


0 Kudos
Eckhardt__Stephen
817 Views

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.

0 Kudos
Reply