[Openmp-commits] [PATCH] D123572: [OpenMP] Implemented a connector for communication of OMPT callbacks between libraries.

Dhruva Chakrabarti via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Apr 12 00:00:35 PDT 2022


dhruvachak created this revision.
dhruvachak added reviewers: jdoerfert, JonChesterfield, jmellorcrummey, ronlieb, protze.joachim, hbae, dreachem, RaviNarayanaswamy, AndreyChurbanov, jlpeyton.
Herald added subscribers: guansong, yaxunl, mgorny.
Herald added a project: All.
dhruvachak requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

Introduced a cmake variable LIBOMPTARGET_OMPT_SUPPORT that can be used
to control OMPT target support. It follows host OMPT support, controlled
by LIBOMP_HAVE_OMPT_SUPPORT. Added a global constructor in libomptarget
that uses the connector to force registration of tool-provided callbacks
in libomp. A pair of init and fini functions are provided to libomp as
part of the connect process which will be used to register the
tool-provided callbacks in libomptarget.

Depends on D123429 <https://reviews.llvm.org/D123429>

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123572

Files:
  openmp/libomptarget/CMakeLists.txt
  openmp/libomptarget/include/ompt-connector.h
  openmp/libomptarget/src/CMakeLists.txt
  openmp/libomptarget/src/ompt_callback.cpp
  openmp/runtime/cmake/config-ix.cmake
  openmp/runtime/src/exports_so.txt
  openmp/runtime/src/ompt-general.cpp
  openmp/runtime/src/ompt-specific.cpp
  openmp/runtime/src/ompt-specific.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123572.422131.patch
Type: text/x-patch
Size: 13935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220412/804f6d7e/attachment-0001.bin>


More information about the Openmp-commits mailing list