[Openmp-commits] [PATCH] D113728: [libomptarget] [amdgpu] Foundation for OMPT target callback support

Dhruva Chakrabarti via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 11 19:05:36 PST 2021


dhruvachak created this revision.
Herald added subscribers: luke957, kerbowa, s.egerton, simoncook, t-tye, tpr, dstuttard, yaxunl, mgorny, nhaehnle, jvesely, kzhuravl.
dhruvachak requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1, wdng.
Herald added a reviewer: jdoerfert.
Herald added a project: OpenMP.

OMPT callback support for target task, target data op, and target submit

Patch from John Mellor-Crummey <johnmc at rice.edu>
(With contributions from Dhruva Chakrabarti <Dhruva.Chakrabarti at amd.com>)

o Connect up libomp, libomptarget and AMDGPU device rtl
o Provide a callback class used to interact with a tool
o Update omp-tool.h.var from LLVM main to ensure it is fresh
o Update libomp sources for two purposes

1. Adapt to new macros in omp-tools.h
2. Add API used by libomptarget to extract task_data and target_task_data when needed to support OMPT EMI calls

o Integrate support for EMI and NONEMI target callbacks
o Target, data operation, and target submit callbacks added


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113728

Files:
  openmp/libomptarget/CMakeLists.txt
  openmp/libomptarget/include/ompt-connector.h
  openmp/libomptarget/include/ompt_device_callbacks.h
  openmp/libomptarget/include/omptarget.h
  openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
  openmp/libomptarget/plugins/amdgpu/src/ompt_callback.cpp
  openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
  openmp/libomptarget/src/CMakeLists.txt
  openmp/libomptarget/src/device.cpp
  openmp/libomptarget/src/exports
  openmp/libomptarget/src/interface.cpp
  openmp/libomptarget/src/ompt_callback.cpp
  openmp/libomptarget/src/ompt_callback.h
  openmp/libomptarget/src/omptarget.cpp
  openmp/runtime/src/exports_so.txt
  openmp/runtime/src/include/omp-tools.h.var
  openmp/runtime/src/kmp.h
  openmp/runtime/src/ompt-general.cpp
  openmp/runtime/src/ompt-internal.h
  openmp/runtime/src/ompt-specific.cpp
  openmp/runtime/src/ompt-specific.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113728.386715.patch
Type: text/x-patch
Size: 80586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211112/29a6ccbc/attachment-0001.bin>


More information about the Openmp-commits mailing list