Skip to content

Commit

Permalink
[OpenMP] Add an INFO message for data transfer of kernel launch env. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvachak authored Dec 1, 2023
1 parent 3530428 commit ca2d79f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ca2d79f

Please sign in to comment.