You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building Clang/11.0.1-gcccuda-2020b on our cluster it was never able to properly offload to our Nvidia GPUs, however, the compiler never failed to compile and OpenMP still worked, it was just not able to detect any GPUs on the system. After a bit of digging I found the following in the build log of Clang:
-- LIBOMPTARGET: Building offloading runtime library libomptarget.
-- LIBOMPTARGET: Not building aarch64 offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building CUDA offloading plugin: libelf dependency not found.
-- LIBOMPTARGET: Not building PPC64 offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building PPC64le offloading plugin: machine not found in the system.
-- LIBOMPTARGET: Not building nec-aurora plugin: libveo or libveosinfo not found.
-- LIBOMPTARGET: Not building x86_64 offloading plugin: libelf dependency not found.
-- LIBOMPTARGET: Building CUDA offloading device RTL.
Which shows that it is build some part of the offloading support, but since -- LIBOMPTARGET: Not building CUDA offloading plugin: libelf dependency not found. I guess it was never able to properly generate the offload code.
Adding elfutils/0.183 to the build dependencies of Clang solved the problem and a very simple offloading program, that did not work before adding elfutils, was able to detect and offload to the Nvidia GPU.
The text was updated successfully, but these errors were encountered:
When building
Clang/11.0.1-gcccuda-2020b
on our cluster it was never able to properly offload to our Nvidia GPUs, however, the compiler never failed to compile and OpenMP still worked, it was just not able to detect any GPUs on the system. After a bit of digging I found the following in the build log ofClang
:Which shows that it is build some part of the offloading support, but since
-- LIBOMPTARGET: Not building CUDA offloading plugin: libelf dependency not found.
I guess it was never able to properly generate the offload code.Adding
elfutils/0.183
to the build dependencies ofClang
solved the problem and a very simple offloading program, that did not work before addingelfutils
, was able to detect and offload to the Nvidia GPU.The text was updated successfully, but these errors were encountered: