<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 - Target CUDA RTL --> CUDA error is: named symbol not found"
href="https://bugs.llvm.org/show_bug.cgi?id=45401">45401</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Target CUDA RTL --> CUDA error is: named symbol not found
</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>normal
</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>xw111luoye@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I got from LIBOMPTARGET_DEBUG=1 output
Target CUDA RTL --> Load data from image 0x000000000096ab50
Target CUDA RTL --> CUDA module successfully loaded!
Target CUDA RTL --> Loading
'__omp_offloading_29_37ac7ea__ZN11qmcplusplus12SplineC2ROMPIfE19evaluateVGLMultiPosERKNS_6VectorIfNS_12OMPallocatorIfNS_23CUDALockedPageAllocatorIfNS_10MallocatorIfLm64EEEEEEEEERKSt6vectorISt17reference_wrapperINS2_IfSaIfEEEESaISG_EERKSC_ISD_INS2_INS_10TinyVectorIfLj3EEESaISM_EEEESaISP_EESK__l103'
(Failed)
Target CUDA RTL --> CUDA error is: named symbol not found
Libomptarget --> Unable to generate entries table for device id 0.
caused by the following function in a class.
void evaluateVGLMultiPos(const Vector<ST, OffloadPinnedAllocator<ST>>&
multi_pos_copy,
const RefVector<ValueVector_t>& psi_v_list,
const RefVector<GradVector_t>& dpsi_v_list,
const RefVector<ValueVector_t>& d2psi_v_list)
{
#pragma omp target
{ }
}
The same class do have another target region which works fine if I comment out
the above target region.
void finalizeConstruction() override
{
#pragma omp target
{ }
}
Here I was not using static linking but directly linking the object file into
the final executable.
I also wondered if the long mangled name was the issue. But adding many
characters to finalizeConstruction didn't seem to cause any issue when I tried.</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>