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

Using gdb with MKL

mullervki
Beginner
275 Views
Hello,

I have an executable running on Linux-64 that runs just fine.

However, if I try to debug the program by using gdb, the moment I issue the "run" command, I get the following error:
error while loading shared libraries: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory


Do I need to do anything special in order to debug an application linked with MKL on Linux-64? If I just simply run the program - in the same Linux terminal window with the same environment - it runs fine, but no inside gdb.

Thanks.

-Arthur
0 Kudos
1 Reply
barragan_villanueva_
Valued Contributor I
275 Views
Hi,

To use gdb you need to have the same environment as for running of the executable, especially, corrected LD_LIBRARY_PATH.

Please run ldd command for your exacutable to check that all MKLlibraries can be found.
0 Kudos
Reply