mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
OCL: Fix error for too big dimensions
- cases with null lws should only fail when computed lws sizes result in too big number of workgroups Related-To: NEO-6976 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7be9881758
commit
f77f47099c
@@ -131,13 +131,6 @@ 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