<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 - data race in libomptarget"
href="https://bugs.llvm.org/show_bug.cgi?id=46257">46257</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>data race in libomptarget
</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>My code offloads from multiple host threads simultaneously.
I'm running on x86-64 + NVIDIA GPU.
git clone <a href="https://github.com/ye-luo/miniqmc.git">https://github.com/ye-luo/miniqmc.git</a>
cd miniqmc/build
cmake -DCMAKE_CXX_COMPILER=clang++ -DENABLE_OFFLOAD=1 -DUSE_OBJECT_TARGET=ON ..
make -j15 miniqmc_sync_move
OMP_NUM_THREADS=8 ./bin/miniqmc_sync_move -w 80 -c 2 -n 1
Libomptarget fatal error 1: failure of target construct while offloading is
mandatory
Libomptarget fatal error 1: failure of target construct while offloading is
mandatory
Segmentation fault (core dumped)
OMP_NUM_THREADS=1 runs fine.
The same code runs well on Power9+V100 and XL compiler.</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>