[Openmp-commits] [openmp] [OpenMP][Offloading][AMDGPU] Exclude `nogpulib` in `lit.cfg` (PR #76702)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 2 05:23:54 PST 2024


jhuber6 wrote:

This was not an oversight, Nvidia (non-LTO version) was excluded because it doesn't use the static library version of the runtime. What failures is this causing? The initial concern was that without `-nogpulib` the compilation potentially pulls in many libraries from around the system that could vary and cause problems. E.g. a `libomptarget.devicertl.a` from the system LLVM install or the ROCm device libs from somewhere else. We wanted to have a sanitary environment to run tests in so we elected to disable these libraries manually and then pass them in.

Another thing I've considered is instead of doing `-lomptarget.devicertl` and `-lomptarget` we just fish those out of the compiler's resource directory and pass them by name instead. This will pretty much force it to link against only the libraries built with the same LLVM installation. Unfortunately we can't make this fully automatic because we can't use `-rpath`. 

https://github.com/llvm/llvm-project/pull/76702


More information about the Openmp-commits mailing list