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

Error While Loading Shared Libraries: libiomp5.so

CPati2
New Contributor III
6,151 Views

Hi All,

I am running CentOS 7.3 on Intel Xeon Phi. I have successfully configured Parallel Studio XE 2017 update 5 with all the libraries and tools that come with it. However, for some reason I keep getting following error when I profile benchmarks like DeepBench, Intel LINKPACK or Intel Caffe with perf: 

error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory

Both perf and benchmarks work standalone, only time they don't is when I hook them with each other. This wasn't the case before I had to re-install CentOS on my system. I have sourced MKL environment variables apart from other specific variables from /opt/intel/bin/*.sh. I haven't found this libiomp5.so installed anywhere on the system.

source /opt/intel/bin/compilervars.sh intel64
source /opt/intel/mkl/bin/mklvars.sh intel64
source /opt/intel/impi/2017.4.239/intel64/bin/mpivars.sh intel64
source /opt/intel/bin/iccvars.sh intel64
source /opt/intel/bin/ifortvars.sh intel64

Can anyone please share steps or suggestions on how to solve this issue?

Thanks.

0 Kudos
1 Solution
CPati2
New Contributor III
6,151 Views

Hi All,

I solved this by adding following in /etc/ld.so.conf:

/opt/intel/lib/intel64

and then run:

sudo ldconfig

Intel documentation lacks all these details.

Thanks.

View solution in original post

0 Kudos
3 Replies
CPati2
New Contributor III
6,152 Views

Hi All,

I solved this by adding following in /etc/ld.so.conf:

/opt/intel/lib/intel64

and then run:

sudo ldconfig

Intel documentation lacks all these details.

Thanks.

0 Kudos
Zhen_Z_Intel
Employee
6,151 Views

Hi Chetan,

libiomp5.so is saved in compiler lib folder. Normally the path of Intel compiler lib will be added to LD_LIBRARY_PATH when you source /opt/intel/compilers_and_libraries_2017.x.xxx/linux/bin/compilervars.sh <ia32|intel64>

If you get this error message, please try to:
export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2017.x.xxx/linux/compiler/lib/intel64:$LD_LIBRARY_PATH

Best regards,
Fiona

 

0 Kudos
Munasinghe__Indula
6,151 Views

Hi 

You can simply scp the libiomp5.so file from /opt/intel/lib/intel64 to coprocessor

scp libiomp5.so mic0:

Then copy this file to lib64 file in the coprocessor

cp libiomp5.so /lib64

 

Indula.

 

0 Kudos
Reply