Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ali_J_1
Beginner
106 Views

shared libraries "libiomp5.so" error

Jump to solution

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
106 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

3 Replies
Ravi_N_Intel
Employee
107 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

Ali_J_1
Beginner
106 Views

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

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

Ravi_N_Intel
Employee
106 Views

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

Reply