Skip to content

Commit 857b604

Browse files
committed
Extra debug prints
1 parent 5083f4f commit 857b604

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

source/adapters/level_zero/command_buffer.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,11 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferAppendKernelLaunchExp(
656656
ZeThreadGroupDimensions, WG, WorkDim,
657657
GlobalWorkSize, LocalWorkSize));
658658

659+
logger::debug("Group Size ({}, {}, {})", WG[0], WG[1], WG[2]);
660+
logger::debug("Group Count ({}, {}, {})", ZeThreadGroupDimensions.groupCountX,
661+
ZeThreadGroupDimensions.groupCountY,
662+
ZeThreadGroupDimensions.groupCountZ);
663+
659664
ZE2UR_CALL(zeKernelSetGroupSize, (Kernel->ZeKernel, WG[0], WG[1], WG[2]));
660665

661666
CommandBuffer->KernelsList.push_back(Kernel);
@@ -1179,6 +1184,18 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferUpdateKernelLaunchExp(
11791184
UR_ASSERT(Command->CommandBuffer->IsFinalized,
11801185
UR_RESULT_ERROR_INVALID_OPERATION);
11811186

1187+
if (CommandDesc->pNewGlobalWorkSize) {
1188+
DEBUG_LOG(CommandDesc->pNewGlobalWorkSize[0]);
1189+
DEBUG_LOG(CommandDesc->pNewGlobalWorkSize[1]);
1190+
DEBUG_LOG(CommandDesc->pNewGlobalWorkSize[2]);
1191+
}
1192+
1193+
if (CommandDesc->pNewLocalWorkSize) {
1194+
DEBUG_LOG(CommandDesc->pNewLocalWorkSize[0]);
1195+
DEBUG_LOG(CommandDesc->pNewLocalWorkSize[1]);
1196+
DEBUG_LOG(CommandDesc->pNewLocalWorkSize[2]);
1197+
}
1198+
11821199
uint32_t Dim = CommandDesc->newWorkDim;
11831200
if (Dim != 0) {
11841201
// Error if work dim changes

0 commit comments

Comments
 (0)