Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7942 Discussions

shared libraries "libiomp5.so" error

Ali_J_1
Beginner
391 Views

Hello,

I am tryoing to compile and run helloflops2 from "example from "Intel Xeon Phi Coprocessor High-Performance Programming". I could compile the code using this command line:

   > icc -openmp -mmic -qopt-report-phase=vec -qopt-report=3  -O3 helloflops2.c -o helloflops2

Then, I scp "helloflops2" file to mic0:/root and try to run it using: "./helloflops2"  and I got this error:

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

In the host processor, I have set all the environment variables:

   > source /opt/intel/composerxe/bin/compilervars.sh intel64

   > export LD_LIBRARY_PATH=/opt/intel/composer_xe_2015.3.187/compiler/lib/intel64

In mic0, i copied  "libiomp5.so" file into /lin64 folder and issued this:

   > export LD_LIBRARY_PATH=/lib64

Still I am getting the error. Any help is highly appreciated.

Ali

0 Kudos
1 Solution
Ravi_N_Intel
Employee
391 Views

The libraries to run natively on the card are in ...../compiler/lib/mic.

So copy the libiomp5.so from that location.  The one you copied can only be used on the host.

View solution in original post

0 Kudos
3 Replies
Ravi_N_Intel
Employee
392 Views

The libraries to run natively on the card are in ...../compiler/lib/mic.

So copy the libiomp5.so from that location.  The one you copied can only be used on the host.

0 Kudos
Ali_J_1
Beginner
391 Views

Thanks Ravi. For future reference; the complete path to library files is:

/opt/intel/composer_xe_2015.3.187/compiler/lib/mic/

0 Kudos
Ravi_N_Intel
Employee
391 Views

I did not give the full path since you could have installed it at some other location.

0 Kudos
Reply