Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

libiomp5.so Problems

lightningjim
Beginner
1,169 Views
When I run "ezan" with this compilation command:
[cpp]ifort -o ezan -O3 ezan.f90 ezasub.f90 blktri.f[/cpp]
it runs fine. But when I add the "-openmp" or "-parallel" option and try to run it I get this error:
[cpp]./ezan: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory[/cpp]
I'm not sure why it's doing this. LD_LIBRARY_PATH is set to the right location and the file is in that folder.
I am running on Ubuntu x64 8.10 with the Intel 64-bit version installed. My processor is an Intel i7.
0 Kudos
3 Replies
srimks
New Contributor II
1,169 Views
Quoting - lightningjim
When I run "ezan" with this compilation command:
[cpp]ifort -o ezan -O3 ezan.f90 ezasub.f90 blktri.f[/cpp]
it runs fine. But when I add the "-openmp" or "-parallel" option and try to run it I get this error:
[cpp]./ezan: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory[/cpp]
I'm not sure why it's doing this. LD_LIBRARY_PATH is set to the right location and the file is in that folder.
I am running on Ubuntu x64 8.10 with the Intel 64-bit version installed. My processor is an Intel i7.
Kindly check if "libiomp5.so" is their in your LD_LIBRARY_PATH or perform the executable dependency of libraries. I am not sure what OS you are using but in Linux we perform "ldd [executable].

~BR
0 Kudos
lightningjim
Beginner
1,169 Views
Quoting - srimks
Kindly check if "libiomp5.so" is their in your LD_LIBRARY_PATH or perform the executable dependency of libraries. I am not sure what OS you are using but in Linux we perform "ldd [executable].

~BR
"Kindly check if "libiomp5.so" is their in your LD_LIBRARY_PATH" => "LD_LIBRARY_PATH is set to the right location and the file is in that folder."

"I am not sure what OS you are" => "I am running Ubuntu 64-bit 8.10"

Sorry to be pointing that out but I already answered those questions in the first post.

ldd ezan gives me:
[cpp]	linux-vdso.so.1 =>  (0x00007fff033ff000)
	libm.so.6 => /lib/libm.so.6 (0x00007fdafada3000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007fdafab87000)
	libc.so.6 => /lib/libc.so.6 (0x00007fdafa815000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fdafa5fd000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007fdafa3f9000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdafb028000)
[/cpp]

0 Kudos
Ron_Green
Moderator
1,169 Views
Quoting - lightningjim
"Kindly check if "libiomp5.so" is their in your LD_LIBRARY_PATH" => "LD_LIBRARY_PATH is set to the right location and the file is in that folder."

"I am not sure what OS you are" => "I am running Ubuntu 64-bit 8.10"

Sorry to be pointing that out but I already answered those questions in the first post.

ldd ezan gives me:
[cpp]	linux-vdso.so.1 =>  (0x00007fff033ff000)
libm.so.6 => /lib/libm.so.6 (0x00007fdafada3000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fdafab87000)
libc.so.6 => /lib/libc.so.6 (0x00007fdafa815000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fdafa5fd000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fdafa3f9000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdafb028000)
[/cpp]


how about:

file ezan

and

file /libiomp5.so

Are they the same architecture? Is your file 32bit and the LD_LIBRARY_PATH pointing to the 64bit libraries, or vice-versa?

If you

source /opt/intel/Compiler/11.0/081/bin/ifortvars.sh intel64

it should make sure that your LD_LIBRARY_PATH and your ifort are in synch with whether this is 32 or 64 bit builds and libraries.

ron
0 Kudos
Reply