[llvm-bugs] [Bug 46257] New: data race in libomptarget

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 9 12:31:51 PDT 2020


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

            Bug ID: 46257
           Summary: data race in libomptarget
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: xw111luoye at gmail.com
                CC: llvm-bugs at lists.llvm.org

My code offloads from multiple host threads simultaneously.
I'm running on x86-64 + NVIDIA GPU.

git clone https://github.com/ye-luo/miniqmc.git
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.

-- 
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/20200609/2b9c8013/attachment.html>


More information about the llvm-bugs mailing list