Page MenuHomePhabricator

[OpenMP] [OMPT] [amdgpu] [4/8] Implemented callback registration in amdgpu plugin
Needs ReviewPublic

Authored by dhruvachak on Apr 19 2022, 11:46 PM.

Details

Summary

The purpose of this patch is to Implement registration of callback functions in the amdgpu plugin by looking up corresponding callbacks in libomptarget. The overall design document is https://rice.app.box.com/s/pf3gix2hs4d4o1aatwir1set05xmjljc

Defined an object of type OmptDeviceCallbacksTy in the amdgpu plugin for holding the tool-provided callback functions. Implemented a global constructor in the plugin that creates a connector object to connect with libomptarget. The callbacks that are already registered with libomptarget are looked up and registered with the plugin.

Depends on D123974

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

Diff Detail

Event Timeline

dhruvachak created this revision.Apr 19 2022, 11:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2022, 11:46 PM
Herald added subscribers: kerbowa, t-tye, tpr and 5 others. · View Herald Transcript
dhruvachak requested review of this revision.Apr 19 2022, 11:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2022, 11:46 PM
dhruvachak retitled this revision from [OMPT] [amdgpu] Implemented callback registration in amdgpu plugin to [OpenMP] [OMPT] [amdgpu] [4/8] Implemented callback registration in amdgpu plugin.Jun 20 2022, 7:58 PM
dhruvachak edited the summary of this revision. (Show Details)
jplehr added a subscriber: jplehr.Dec 1 2022, 8:04 AM
jplehr added inline comments.Dec 1 2022, 8:21 AM
openmp/libomptarget/plugins/amdgpu/src/ompt_callback.cpp
57

Minor change to be consistent with other functions printing the function name in these debug messages.