4

I installed Intel® Parallel Studio XE Composer Edition for C++ Linux to use OpenMP 4.0. I compile example code with

icc example.c -openmp -o example

When I run ./example I have an error:

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

3 Answers3

6

In a HPC, I got the same message if I do not run module load intel firstly.

Another ref: https://software.intel.com/en-us/forums/topic/271099

Zhilong Jia
  • 2,329
  • 1
  • 22
  • 34
  • 1
    This worked for me. Despite having module load intel in bashrc.local.blah, submitting a job still gave the libiomp5.so error. Had to put module load intel in the job script. –  Mar 03 '17 at 01:47
  • 2
    From the link supplied, `source /opt/intel/bin/compilervars.sh intel64` worked for me. Thanks. – skytaker Mar 20 '17 at 21:16
0

There is a dependency on the libiomp5.so module. Check to see if your machine already has this module installed by running $find / -name libiomp5.so and if the module is not found, then install it and put it in the modules folder that your program is looking in.

GracefulCode
  • 141
  • 7
0

With Intel compiler you should use -qopenmp.

Royi
  • 4,640
  • 6
  • 46
  • 64