From ca2d79f9cad48b7165bf81a7cc24b67f277915f1 Mon Sep 17 00:00:00 2001 From: dhruvachak Date: Fri, 1 Dec 2023 10:58:23 -0800 Subject: [PATCH] [OpenMP] Add an INFO message for data transfer of kernel launch env. (#74030) --- .../plugins-nextgen/common/src/PluginInterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp b/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp index c580817987a507..5a3fd140f27a34 100644 --- a/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp +++ b/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp @@ -495,6 +495,12 @@ GenericKernelTy::getKernelLaunchEnvironment( AsyncInfoWrapper.freeAllocationAfterSynchronization(*AllocOrErr); } + INFO(OMP_INFOTYPE_DATA_TRANSFER, GenericDevice.getDeviceId(), + "Copying data from host to device, HstPtr=" DPxMOD ", TgtPtr=" DPxMOD + ", Size=%" PRId64 ", Name=KernelLaunchEnv\n", + DPxPTR(&LocalKLE), DPxPTR(*AllocOrErr), + sizeof(KernelLaunchEnvironmentTy)); + auto Err = GenericDevice.dataSubmit(*AllocOrErr, &LocalKLE, sizeof(KernelLaunchEnvironmentTy), AsyncInfoWrapper);