[all-commits] [llvm/llvm-project] aa4c0f: [OpenMP] [OMPT] [3/8] Implemented callback registr...

dhruvachak via All-commits all-commits at lists.llvm.org
Thu Dec 8 11:43:29 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa4c0f116c93a91186291ca3255583fc5deae7f1
      https://github.com/llvm/llvm-project/commit/aa4c0f116c93a91186291ca3255583fc5deae7f1
  Author: Dhruva Chakrabarti <Dhruva.Chakrabarti at amd.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M openmp/libomptarget/include/ompt_connector.h
    A openmp/libomptarget/include/ompt_device_callbacks.h
    M openmp/libomptarget/src/ompt_callback.cpp

  Log Message:
  -----------
  [OpenMP] [OMPT] [3/8] Implemented callback registration in libomptarget

The purpose of this patch is to have tool-provided callbacks registered
in libomptarget. The overall design document is in
https://rice.app.box.com/s/pf3gix2hs4d4o1aatwir1set05xmjljc

Defined a class OmptDeviceCallbacksTy that will be used by libomptarget
and a plugin for callbacks registered by a tool. Once the callbacks are
registered in libomp, a lookup function is passed to libomptarget that is
used to retrieve the callbacks and register them in libomptarget.

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

Reviewed By: jplehr, tianshilei1992

Differential Revision: https://reviews.llvm.org/D123974




More information about the All-commits mailing list