[Openmp-commits] [PATCH] D106975: [openmp] Update OMPT declaration and implementation in the runtime

Lechen Yu via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Jul 28 10:18:54 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. Setup OMPT options and targets in libomptarget's CMakeLists.txt.
2. Modify omp-tools.h.var according to the latest OpenMP specification (omp-tools.h.var).
3. Add additional fields into ompt_task_info_t and ompt_thread_info_t to support target-data, target-task-data, and host-op-id (ompt-internal.h).
4. Set corresponding flags correctly when initializing a target task (kmp_tasking.cpp).
5. Add wrappers for target-emi callbacks (ompt-general.cpp).
6. Add callback interfaces for libomptarget in the runtime. The details of OMPT callbacks are transparent to libomptarget and libomptarget only invokes these interfaces when encountering corresponding events (ompt-general.cpp and exports_so.txt).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106975

Files:
  openmp/libomptarget/src/CMakeLists.txt
  openmp/runtime/src/include/omp-tools.h.var
  openmp/runtime/src/kmp_tasking.cpp
  openmp/runtime/src/ompt-general.cpp
  openmp/runtime/src/ompt-internal.h
  openmp/runtime/src/ompt-target-api.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106975.362440.patch
Type: text/x-patch
Size: 18785 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210728/60fa982f/attachment-0001.bin>


More information about the Openmp-commits mailing list