[Openmp-commits] [PATCH] D96438: [OpenMP] Move synchronization into `__tgt_async_info`

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Feb 10 16:45:27 PST 2021


tianshilei1992 added inline comments.


================
Comment at: openmp/libomptarget/include/omptarget.h:136
+/// The libomptarget wrapper around a __tgt_async_info object directly
+/// associated with a libomptarget layer device. RAII semantics to avoid
+/// mistakes.
----------------
jdoerfert wrote:
> tianshilei1992 wrote:
> > Not sure the wrapper has a bonus to fix issues mentioned in D96431.
> I don't understand.
If we have event, `AsyncInfoTy`'s lifetime can still be out of its scope.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96438/new/

https://reviews.llvm.org/D96438



More information about the Openmp-commits mailing list