File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
unified-runtime/source/adapters/level_zero Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -279,11 +279,15 @@ ur_result_t urEnqueueCooperativeKernelLaunchExp(
279
279
280
280
if (LocalWorkSize) {
281
281
// L0
282
- for (int I = 0 ; I < WorkDim; I++) {
283
- UR_ASSERT (LocalWorkSize[I] < (std::numeric_limits<uint32_t >::max)(),
284
- UR_RESULT_ERROR_INVALID_VALUE);
285
- WG[I] = static_cast <uint32_t >(LocalWorkSize[I]);
286
- }
282
+ UR_ASSERT (LocalWorkSize[0 ] < (std::numeric_limits<uint32_t >::max)(),
283
+ UR_RESULT_ERROR_INVALID_VALUE);
284
+ UR_ASSERT (LocalWorkSize[1 ] < (std::numeric_limits<uint32_t >::max)(),
285
+ UR_RESULT_ERROR_INVALID_VALUE);
286
+ UR_ASSERT (LocalWorkSize[2 ] < (std::numeric_limits<uint32_t >::max)(),
287
+ UR_RESULT_ERROR_INVALID_VALUE);
288
+ WG[0 ] = static_cast <uint32_t >(LocalWorkSize[0 ]);
289
+ WG[1 ] = static_cast <uint32_t >(LocalWorkSize[1 ]);
290
+ WG[2 ] = static_cast <uint32_t >(LocalWorkSize[2 ]);
287
291
} else {
288
292
// We can't call to zeKernelSuggestGroupSize if 64-bit GlobalWorkSize
289
293
// values do not fit to 32-bit that the API only supports currently.
You can’t perform that action at this time.
0 commit comments