Skip to content

Commit 789df92

Browse files
committed
Extra debug prints
1 parent 5083f4f commit 789df92

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/adapters/level_zero/command_buffer.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,18 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferUpdateKernelLaunchExp(
11791179
UR_ASSERT(Command->CommandBuffer->IsFinalized,
11801180
UR_RESULT_ERROR_INVALID_OPERATION);
11811181

1182+
if (CommandDesc->pNewGlobalWorkSize) {
1183+
logger::debug(
1184+
"UR GWS Update ({} {} {})", CommandDesc->pNewGlobalWorkSize[0],
1185+
CommandDesc->pNewGlobalWorkSize[1], CommandDesc->pNewGlobalWorkSize[2]);
1186+
}
1187+
1188+
if (CommandDesc->pNewLocalWorkSize) {
1189+
logger::debug("UR LWS Update({} {} {})", CommandDesc->pNewLocalWorkSize[0],
1190+
CommandDesc->pNewLocalWorkSize[1],
1191+
CommandDesc->pNewLocalWorkSize[2]);
1192+
}
1193+
11821194
uint32_t Dim = CommandDesc->newWorkDim;
11831195
if (Dim != 0) {
11841196
// Error if work dim changes

0 commit comments

Comments
 (0)