[Openmp-commits] [openmp] ca2d79f - [OpenMP] Add an INFO message for data transfer of kernel launch env. (#74030)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Dec 1 10:58:30 PST 2023


Author: dhruvachak
Date: 2023-12-01T10:58:23-08:00
New Revision: ca2d79f9cad48b7165bf81a7cc24b67f277915f1

URL: https://github.com/llvm/llvm-project/commit/ca2d79f9cad48b7165bf81a7cc24b67f277915f1
DIFF: https://github.com/llvm/llvm-project/commit/ca2d79f9cad48b7165bf81a7cc24b67f277915f1.diff

LOG: [OpenMP] Add an INFO message for data transfer of kernel launch env. (#74030)

Added: 
    

Modified: 
    openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp b/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp
index c580817987a5071..5a3fd140f27a34b 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);


        


More information about the Openmp-commits mailing list