[Openmp-dev] libgomp.so libiomp5.so softlinks
Jeff Hammond via Openmp-dev
openmp-dev at lists.llvm.org
Thu May 2 20:25:46 PDT 2019
The LLVM and Intel OpenMP runtimes are essentially identical.
The LLVM/Intel OpenMP runtime defines the GOMP symbols and works with GCC
OpenMP codes, which is actually a good thing, because the GOMP runtime
performs worse (
There are a number of solutions to your problem. One is to control
LD_LIBRARY_PATH appropriately. You can remove LLVM folders from
LD_LIBRARY_PATH and use LD_PRELOAD at runtime or -Wl,-rpath when linking to
tell your LLVM OpenMP binary where the library is.
The best option, of course, is to link statically. You are a Blue Gene
user so I'm sure you understand the utility of fully static binaries :-)
Regardless of how you solve this, I object to removing the symlinks. What
is happening because of this is far better than the alternative of having
multiple OpenMP libraries loaded into a single binary. It is a reasonable
assumption that if you are setting LLVM OpenMP shared libraries in your
global path (LD_LIBRARY_PATH), then you want that library to be used. If
not, link differently.
On Thu, May 2, 2019 at 6:41 PM Ye Luo via Openmp-dev <
openmp-dev at lists.llvm.org> wrote:
> What is the reason of making both libgomp.so libiomp5.so softlinks to
> I found them hijacking my application built with GNU and Intel compilers
> when I put llvm library folder on my LD_LIBRARY_PATH. This is very
> annoying. Unless there is a very good reason, I think they need be removed.
> Ye Luo, Ph.D.
> Computational Science Division & Leadership Computing Facility
> Argonne National Laboratory
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
jeff.science at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openmp-dev