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

Library not loaded: libmkl_intel_ilp64.dylib

emartihu
Beginner
1,042 Views

Hello everyone,
I'm new in mac and with IMKL too, trying to get up some f90 codes for signal processing in a

Macmini3,1. 1Proc, two cores (In the near future we expected to run our applications in a cluster of similar Macs).

After a while I was able to compile without errors, nevertheless the executable doesn't run. Showing the error in the thread title. Here down details:

MKLPATH=/Developer/opt/intel/Compiler/11.1/088/Frameworks/mkl/lib/em64tMKLINCLUDE=/Developer/opt/intel/Compiler/11.1/088/Frameworks/mkl/include/em64t/ilp64Script:ifort -o exec $1 $2 -L MKLPATH -I MKLINCLUDE/Developer/opt/intel/Compiler/11.1/088/Frameworks/mkl/lib/em64t/libmkl_intel_ilp64.dylib /Developer/opt/intel/Compiler/11.1/088/Frameworks/mkl/lib/em64t/libmkl_intel_thread.dylib /Developer/opt/intel/Compiler/11.1/088/Frameworks/mkl/lib/em64t/libmkl_core.dylib /Developer/opt/intel/Compiler/11.1/088/lib/libiomp5.dylib -openmp -lpthreadwhen you execute your recently compiled file, the following output is shown:dhcp-0083712665-16-41:FFT_INTEL_MAC erwin$ ./execdyld: Library not loaded: libmkl_intel_ilp64.dylibReferenced from: /Users/erwin/Desktop/FFT_INTEL_MAC/./execReason: image not foundTrace/BPT trapdhcp-0083712665-16-41:FFT_INTEL_MAC erwin$ ./execdyld: Library not loaded: libmkl_intel_ilp64.dylibReferenced from: /Users/erwin/Desktop/FFT_INTEL_MAC/./execReason: image not foundTrace/BPT trap___I'll thank any help or comment you can share with me.In advance thanks a lot.C. Evans

0 Kudos
5 Replies
Todd_R_Intel
Employee
1,042 Views
Hi,
Have you setDYLD_LIBRARY_PATH to point to the directory location of the Intel MKL dylib's?
Example:
export DYLD_LIBRARY_PATH=/Developer/opt/intel/Compiler/11.1/088/Frameworks/mkl/lib/em64t/
Todd
0 Kudos
emartihu
Beginner
1,042 Views

Hello Todd,

Thank you for your answer, I already included this path and the compilation is going well, but now when Im trying to run de application the following output is obtained:

dhcp-0083712665-16-41:FFT_INTEL_MAC$ ./exec

dyld: Library not loaded: libiomp5.dylib

Referenced from: /Users/rwm/Desktop/FFT_INTEL_MAC/./exec

Reason: image not found

Trace/BPT trap

I looked for this particular library to address the compilation to take into account it, and there are

sh-3.2# find / -name libiomp5.dylib -print

/Applications/MATLAB_R2009b.app/bin/maci/libiomp5.dylib

/Applications/MATLAB_R2009b.app/bin/maci64/libiomp5.dylib

find: /dev/fd/3: Not a directory

find: /dev/fd/4: Not a directory

/Developer/opt/intel/Compiler/11.1/088/lib/libiomp5.dylib

/Library/Frameworks/Intel_MKL.framework/Versions/10.0.5.025/lib/32/libiomp5.dylib

/Library/Frameworks/Intel_MKL.framework/Versions/10.0.5.025/lib/em64t/libiomp5.dylib

/Library/Frameworks/Intel_MKL.framework/Versions/10.0.5.025/lib/universal/libiomp5.dylib

/opt/intel/Compiler/11.1/088/lib/libiomp5.dylib

I tried to compile pointing out to all of these paths, nothing worked. So I copied the libiomp5.dylib file to the folder

/Library/Frameworks/Intel_MKL.framework/Versions/10.0.5.025/lib/em64t/

and now I was able to compile with out errors. Nevertheless there are some run time errors:

dhcp-0083712665-16-41:FFT_INTEL_MAC $ ./exec

forrtl: severe (174): SIGSEGV, segmentation fault occurred

Image PC Routine Line Source

libmkl_intel_ilp6 0000000100109196 Unknown Unknown Unknown

libmkl_intel_ilp6 0000000100108DB6 Unknown Unknown Unknown

exec 0000000100001B25 Unknown Unknown Unknown

exec 00000001000016EC Unknown Unknown Unknown

exec 0000000100001684 Unknown Unknown Unknown

dhcp-0083712665-16-41:FFT_INTEL_MAC $

One of the probs could be that the libiomp5.dylib is not loaded into the OS. Doing this with ld.so.conf + ldconfig in linux is extremely easy, but I dont know how to do this in Mac OS X.

Any advise will be very welcome!

Thank you for your attention.

Best

Evns

0 Kudos
nousername
Beginner
1,042 Views

0 Kudos
barragan_villanueva_
Valued Contributor I
1,042 Views

Hi,

In OSX* there are fat MKL libraries, so please set DYLD_LIBRARY_PATH to MKL lib location without arch-specific word just .../mkl/lib

 

0 Kudos
Jonathan_S_1
Beginner
1,042 Views

Hi all sorry to bother you but I'm having similar problems.

I get this error when running first v 12

dyld: Library not loaded: libiomp5.dylib

So I tried fixing it by entering this into the console 

DYLD_LIBRARY_PATH="/opt/intel/composer_xe_2013_sp1.1.103/compiler/lib"

but no luck.

any hints would be much appreciated 

 

0 Kudos
Reply