mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
Error from clEnqueueNDRangeKernel() for too big group counts
Resolves: NEO-6976 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
322719e7a2
commit
2f24ef6855
@@ -131,6 +131,13 @@ cl_int CommandQueueHw<GfxFamily>::enqueueKernel(
|
||||
return CL_INVALID_WORK_GROUP_SIZE;
|
||||
}
|
||||
|
||||
for (auto i = 0u; i < workDim; i++) {
|
||||
uint64_t dimension = static_cast<uint64_t>(region[i]) / workGroupSize[i];
|
||||
if (dimension > std::numeric_limits<uint32_t>::max()) {
|
||||
return CL_INVALID_GLOBAL_WORK_SIZE;
|
||||
}
|
||||
}
|
||||
|
||||
return enqueueHandler<CL_COMMAND_NDRANGE_KERNEL>(
|
||||
surfaces,
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user