Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2159 Discussions

MPICH3.14 with intel c++ complier on os x 10.10.3,Error:dyld: Library not loaded: libiomp5.dylib

yongbei_ma_
New Contributor I
298 Views

Hi friends:

I install MPICH with intel c++ complier on OS X,when I complier the code link with MKL library,and run the code,it gives me error:

mpicxx -mkl testcode.cpp -o testcode

mpiexec -n 3 ./testcode

dyld: Library not loaded: libiomp5.dylib

  Referenced from: /Users/.....

  Reason: image not found

 

how can  I fix this?

thanks.

yongbei

0 Kudos
1 Reply
yongbei_ma_
New Contributor I
298 Views

Hi

I have solve this problem by myself

just add 

export DYLD_LIBRARY_PATH=/opt/intel/composer_xe_2015/lib:/opt/intel/composer_xe_2015/mkl/lib

thanks anyway.

0 Kudos
Reply