[llvm-bugs] [Bug 50204] New: libomptarget :: offloading/dynamic_module_load.c failing
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun May 2 20:26:21 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50204
Bug ID: 50204
Summary: libomptarget :: offloading/dynamic_module_load.c
failing
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Runtime Library
Assignee: unassignedbugs at nondot.org
Reporter: bryanpkc at gmail.com
CC: llvm-bugs at lists.llvm.org
The test offloading/dynamic_module_load.c is a no-op if none of the offloading
plugins is built. However, when I build LLVM 12 with OpenMP enabled, on a
Ubuntu 20.04 system with libelf and libffi headers, the offloading plugins are
built, and the test fails with a C++ exception.
The CMake command I am using is:
cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DLLVM_ENABLE_PROJECTS="clang;openmp" \
-DLLVM_ENABLE_ASSERTIONS=on \
-DLLVM_OPTIMIZED_TABLEGEN=on \
-DLLVM_TARGETS_TO_BUILD="X86" \
../llvm
The relevant lines of CMake output are:
-- Found LIBOMPTARGET_DEP_LIBELF: /usr/lib/x86_64-linux-gnu/libelf.so
-- Found LIBOMPTARGET_DEP_LIBFFI: /usr/lib/x86_64-linux-gnu/libffi.so
-- Could NOT find LIBOMPTARGET_DEP_CUDA_DRIVER (missing:
LIBOMPTARGET_DEP_CUDA_DRIVER_LIBRARIES)
-- Could NOT find LIBOMPTARGET_DEP_VEO (missing: LIBOMPTARGET_DEP_VEO_LIBRARIES
LIBOMPTARGET_DEP_VEOSINFO_LIBRARIES LIBOMPTARGET_DEP_VEO_INCLUDE_DIRS)
-- LIBOMPTARGET: Building offloading runtime library libomptarget.
-- LIBOMPTARGET: Not building aarch64 offloading plugin: machine not found in
the system.
-- LIBOMPTARGET: Not building AMDGPU plugin: hsa-runtime64 not found
-- LIBOMPTARGET: Building CUDA offloading plugin.
-- LIBOMPTARGET: Building CUDA plugin for dlopened libcuda
-- LIBOMPTARGET: Disabling tests using CUDA plugin as cuda may not be available
-- 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: Building x86_64 offloading plugin.
-- LIBOMPTARGET: Not building NVPTX deviceRTL by default on CUDA free system.
And the test fails like so:
$ env LD_LIBRARY_PATH=lib:projects/openmp/libomptarget LIBOMPTARGET_DEBUG=1 \
projects/openmp/libomptarget/test/offloading/Output/dynamic_module_load.c.tmp-x86_64-pc-linux-gnu
\
projects/openmp/libomptarget/test/offloading/Output/dynamic_module_load.c.tmp.so
Libomptarget --> Init target library!
Libomptarget --> Loading RTLs...
Libomptarget --> Loading library 'libomptarget.rtl.ppc64.so'...
Libomptarget --> Unable to load library 'libomptarget.rtl.ppc64.so':
libomptarget.rtl.ppc64.so: cannot open shared object file: No such file or
directory!
Libomptarget --> Loading library 'libomptarget.rtl.x86_64.so'...
Libomptarget --> Successfully loaded library 'libomptarget.rtl.x86_64.so'!
Libomptarget --> Registering RTL libomptarget.rtl.x86_64.so supporting 4
devices!
Libomptarget --> Loading library 'libomptarget.rtl.cuda.so'...
terminate called after throwing an instance of 'std::system_error'
what(): Unknown error -1
Aborted (core dumped)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210503/76a05024/attachment-0001.html>
More information about the llvm-bugs
mailing list