Skip to content

Commit ca2d79f

Browse files
authored
[OpenMP] Add an INFO message for data transfer of kernel launch env. (#74030)
1 parent 3530428 commit ca2d79f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,12 @@ GenericKernelTy::getKernelLaunchEnvironment(
495495
AsyncInfoWrapper.freeAllocationAfterSynchronization(*AllocOrErr);
496496
}
497497

498+
INFO(OMP_INFOTYPE_DATA_TRANSFER, GenericDevice.getDeviceId(),
499+
"Copying data from host to device, HstPtr=" DPxMOD ", TgtPtr=" DPxMOD
500+
", Size=%" PRId64 ", Name=KernelLaunchEnv\n",
501+
DPxPTR(&LocalKLE), DPxPTR(*AllocOrErr),
502+
sizeof(KernelLaunchEnvironmentTy));
503+
498504
auto Err = GenericDevice.dataSubmit(*AllocOrErr, &LocalKLE,
499505
sizeof(KernelLaunchEnvironmentTy),
500506
AsyncInfoWrapper);

0 commit comments

Comments
 (0)