mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Fix clGetKernelSuggestedLocalWorkSizeINTEL
Related-To: NEO-5456 Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
754fb1fffc
commit
074fc1d60f
@@ -5796,7 +5796,10 @@ cl_int CL_API_CALL clGetKernelSuggestedLocalWorkSizeINTEL(cl_command_queue comma
|
||||
return retVal;
|
||||
}
|
||||
|
||||
if (globalWorkSize == nullptr) {
|
||||
if (globalWorkSize == nullptr ||
|
||||
globalWorkSize[0] == 0 ||
|
||||
(workDim > 1 && globalWorkSize[1] == 0) ||
|
||||
(workDim > 2 && globalWorkSize[2] == 0)) {
|
||||
retVal = CL_INVALID_GLOBAL_WORK_SIZE;
|
||||
return retVal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user