<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - "CUDA error: device kernel image is invalid" with ELF standard notes"
href="https://bugs.llvm.org/show_bug.cgi?id=51517">51517</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"CUDA error: device kernel image is invalid" with ELF standard notes
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Runtime Library
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>llvm@meinersbur.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Since <a href="https://reviews.llvm.org/rG93d08acaacec951dbb302f77eeae51974985b6b2">https://reviews.llvm.org/rG93d08acaacec951dbb302f77eeae51974985b6b2</a>
(<a href="https://reviews.llvm.org/D99551">https://reviews.llvm.org/D99551</a>), several test CUDA regression tests are
failing with and "kernel image is invalid error".
First buildbot occurrence at <a href="http://meinersbur.de:8011/#/builders/1/builds/496">http://meinersbur.de:8011/#/builders/1/builds/496</a>
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
--
********************</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>