[Openmp-commits] [PATCH] D106976: [openmp] Initialize OMPT in libomptarget

Lechen Yu via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Jul 28 10:23:58 PDT 2021


lechenyu created this revision.
lechenyu added reviewers: jdoerfert, hbae, protze.joachim.
lechenyu added a project: OpenMP.
Herald added subscribers: guansong, yaxunl, mgorny.
lechenyu requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.

1. Add two files, ompt-target.h and ompt-target.cpp, for OMPT-related types, global variables and classes. For each target-related callbacks, there is an associated wrapper class. The wrapper class is used to store parameters for callbacks, and the actual OMPT callbacks are invoked in the constructor/destructor using the predefined interfaces in the runtime.
2. Initialize the bitmap and other global variables when initializing libomptarget (rtl.cpp).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106976

Files:
  openmp/libomptarget/src/CMakeLists.txt
  openmp/libomptarget/src/ompt-target.cpp
  openmp/libomptarget/src/ompt-target.h
  openmp/libomptarget/src/rtl.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106976.362443.patch
Type: text/x-patch
Size: 10203 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210728/7121e6b0/attachment.bin>


More information about the Openmp-commits mailing list