[Openmp-commits] [PATCH] D84778: [OpenMP] Refactor the `target` function

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jul 28 10:59:48 PDT 2020


tianshilei1992 created this revision.
Herald added subscribers: openmp-commits, guansong, yaxunl.
Herald added a project: OpenMP.
tianshilei1992 requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

Refactor the `target` function to make preparation of fixing the issue
of ahead-of-time device memory deallocation. This patch has following changes:

1. Replaced all mutex lock/unlock with `std::lock_guard`;
2. Renamed all variables to conform with LLVM code standard;
3. Took data process out of the `target` function.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84778

Files:
  openmp/libomptarget/src/device.cpp
  openmp/libomptarget/src/interface.cpp
  openmp/libomptarget/src/omptarget.cpp
  openmp/libomptarget/src/private.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84778.281295.patch
Type: text/x-patch
Size: 28244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200728/af57f2c9/attachment-0001.bin>


More information about the Openmp-commits mailing list