When I run a specific MEX file I get the message: "Invalid MEX file: The specified module could not be found". The dependency_walker utility seems not to work.

2 views (last 30 days)
Tim Geerits
Tim Geerits on 18 May 2022
Answered: Jan on 18 May 2022
I create MEX files all the time using Visual Studio 2019 IDE but by using the Intel C++, 19.2 compiler instead of the MS VS C++ compiler. No such problems as described above, only when I include the oneAPI Math Kernel Library. I have tried to run the dependency walker utility as instructed by the MATLAB community on this particular MEX file to see its dependencies:
!D:\Temp\dependency_walker\depends.exe WV_DAMA_SLOW_INV_OpenMP_MKL_MEX64.mexw64
which runs forever! After 1 hour I killed Matlab. I assume this should not take that long, or ??
In any case if there is anyone out there who recognizes this problem or has useful suggestions on how to proceed, please let me know. Your help is very much appreciated.

Answers (1)

Jan
Jan on 18 May 2022
Open the DependencyWalker with a double click. Then select the mex file manually. This should show the report after some seconds.

Tags

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!