[Openmp-commits] [PATCH] D64571: [OPENMP]Fix threadid in __kmpc_omp_taskwait call for dependent target calls.

Alexey Bataev via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jul 11 09:16:56 PDT 2019


ABataev created this revision.
ABataev added reviewers: grokos, kkwli0.
Herald added subscribers: jdoerfert, guansong.
Herald added a project: OpenMP.

We used to call __kmpc_omp_taskwait function with global threadid set to
0. It may crash the application at the runtime if the thread executing
 target region is not a master thread.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D64571

Files:
  libomptarget/src/interface.cpp
  libomptarget/test/offloading/target_depend_nowait.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64571.209247.patch
Type: text/x-patch
Size: 4147 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20190711/fa940a5b/attachment.bin>


More information about the Openmp-commits mailing list