Skip to content

Commit 9a2caa1

Browse files
committed
address comment
1 parent f3e11f1 commit 9a2caa1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/adapters/level_zero/kernel.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelGetSuggestedLocalWorkSize(
3232
UR_CALL(getSuggestedLocalWorkSize(hQueue, ZeKernel, GlobalWorkSize3D,
3333
LocalWorkSize));
3434

35-
UR_ASSERT(pSuggestedLocalWorkSize != nullptr, UR_RESULT_ERROR_INVALID_VALUE);
3635
std::copy(LocalWorkSize, LocalWorkSize + workDim, pSuggestedLocalWorkSize);
3736
return UR_RESULT_SUCCESS;
3837
}
@@ -87,14 +86,14 @@ ur_result_t getSuggestedLocalWorkSize(ur_queue_handle_t hQueue,
8786
--GroupSize[I];
8887
}
8988
if (GlobalWorkSize3D[I] / GroupSize[I] > UINT32_MAX) {
90-
logger::error("urEnqueueKernelLaunch: can't find a WG size "
89+
logger::error("getSuggestedLocalWorkSize: can't find a WG size "
9190
"suitable for global work size > UINT32_MAX");
9291
return UR_RESULT_ERROR_INVALID_WORK_GROUP_SIZE;
9392
}
9493
WG[I] = GroupSize[I];
9594
}
9695
logger::debug(
97-
"urEnqueueKernelLaunch: using computed WG size = {{{}, {}, {}}}", WG[0],
96+
"getSuggestedLocalWorkSize: using computed WG size = {{{}, {}, {}}}", WG[0],
9897
WG[1], WG[2]);
9998
}
10099

0 commit comments

Comments
 (0)