[llvm-bugs] [Bug 51517] New: "CUDA error: device kernel image is invalid" with ELF standard notes

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 17 21:08:26 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51517

            Bug ID: 51517
           Summary: "CUDA error: device kernel image is invalid" with ELF
                    standard notes
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm at meinersbur.de
                CC: llvm-bugs at lists.llvm.org

Since https://reviews.llvm.org/rG93d08acaacec951dbb302f77eeae51974985b6b2
(https://reviews.llvm.org/D99551), several test CUDA regression tests are
failing with and "kernel image is invalid error".

First buildbot occurrence at http://meinersbur.de:8011/#/builders/1/builds/496

Example error message:

******************** TEST 'libomptarget :: nvptx64-nvidia-cuda ::
mapping/declare_mapper_target_update.cpp' FAILED ********************
Script:
--
: 'RUN: at line 1';  
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/./bin/clang
-fopenmp -pthread -fno-experimental-isel --cuda-path=/opt/cuda  -I
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.src/openmp/libomptarget/test
-I
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/projects/openmp/runtime/src
-L
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/projects/openmp/libomptarget
-L
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/lib
 -fopenmp-targets=nvptx64-nvidia-cuda
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.src/openmp/libomptarget/test/mapping/declare_mapper_target_update.cpp
-o
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/projects/openmp/libomptarget/test/nvptx64-nvidia-cuda/mapping/Output/declare_mapper_target_update.cpp.tmp
&&
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/projects/openmp/libomptarget/test/nvptx64-nvidia-cuda/mapping/Output/declare_mapper_target_update.cpp.tmp
|
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/./bin/FileCheck
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.src/openmp/libomptarget/test/mapping/declare_mapper_target_update.cpp
--
Exit Code: 2
Command Output (stdout):
--
$ ":" "RUN: at line 1"
note: command had no output on stdout or stderr
$
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/./bin/clang"
"-fopenmp" "-pthread" "-fno-experimental-isel" "--cuda-path=/opt/cuda" "-I"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.src/openmp/libomptarget/test"
"-I"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/projects/openmp/runtime/src"
"-L"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/projects/openmp/libomptarget"
"-L"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/lib"
"-fopenmp-targets=nvptx64-nvidia-cuda"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.src/openmp/libomptarget/test/mapping/declare_mapper_target_update.cpp"
"-o"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/projects/openmp/libomptarget/test/nvptx64-nvidia-cuda/mapping/Output/declare_mapper_target_update.cpp.tmp"
# command stderr:
clang-14: warning: unknown CUDA version: cuda.h: CUDA_VERSION=11020.; assuming
the latest supported version 10.1 [-Wunknown-cuda-version]
$
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/projects/openmp/libomptarget/test/nvptx64-nvidia-cuda/mapping/Output/declare_mapper_target_update.cpp.tmp"
# command stderr:
CUDA error: Error returned from cuModuleLoadDataEx
CUDA error: device kernel image is invalid 
Libomptarget error: Unable to generate entries table for device id 0.
Libomptarget error: Failed to init globals on device 0
Libomptarget error: Run with LIBOMPTARGET_INFO=4 to dump host-target pointer
mappings.
Libomptarget error: Source location information not present. Compile with -g or
-gline-tables-only.
Libomptarget fatal error 1: failure of target construct while offloading is
mandatory
error: command failed with exit status: -6
$
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/./bin/FileCheck"
"/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.src/openmp/libomptarget/test/mapping/declare_mapper_target_update.cpp"
# command stderr:
FileCheck error: '<stdin>' is empty.
FileCheck command line: 
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.build/./bin/FileCheck
/home/buildbot-worker/minipc-1050ti-linux/openmp-offload-cuda-project/llvm.src/openmp/libomptarget/test/mapping/declare_mapper_target_update.cpp
error: command failed with exit status: 2
--
********************

-- 
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/20210818/6de37323/attachment-0001.html>


More information about the llvm-bugs mailing list