Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

VS2022 Test Runner Fails with 2024.0

Eckhardt__Stephen
1,292 次查看

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 项奖励
1 解答
Gennady_F_Intel
主持人
1,238 次查看

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 项奖励
2 回复数
Gennady_F_Intel
主持人
1,239 次查看

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 项奖励
Eckhardt__Stephen
1,225 次查看

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 项奖励
回复