Community
cancel
Showing results for 
Search instead for 
Did you mean: 
mullervki
Beginner
93 Views

Using gdb with MKL

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
93 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.
Reply