[Openmp-commits] [llvm] [openmp] [offload][ompt] Added lookup function for device callbacks (PR #110007)
Michael Halkenhäuser via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 26 08:15:44 PDT 2024
================
@@ -767,7 +767,7 @@ Error GenericDeviceTy::init(GenericPluginTy &Plugin) {
performOmptCallback(device_initialize, Plugin.getUserId(DeviceId),
/*type=*/getComputeUnitKind().c_str(),
/*device=*/reinterpret_cast<ompt_device_t *>(this),
- /*lookup=*/ompt::lookupCallbackByName,
+ /*lookup=*/ompt::ompt_device_fn_lookup,
----------------
mhalk wrote:
Downstream examples:
https://github.com/ROCm/llvm-project/blob/amd-staging/offload/plugins-nextgen/common/src/PluginInterface.cpp#L957
https://github.com/ROCm/llvm-project/blob/amd-staging/offload/plugins-nextgen/common/OMPT/OmptTracing.cpp#L298-L310
https://github.com/llvm/llvm-project/pull/110007
More information about the Openmp-commits
mailing list