mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
fix: allow empty set to be passed to clSetKernelExecInfo
Related-To: GSD-8538 Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4b4d21a5e6
commit
ea057abd36
@@ -5123,9 +5123,9 @@ cl_int CL_API_CALL clSetKernelExecInfo(cl_kernel kernel,
|
||||
|
||||
case CL_KERNEL_EXEC_INFO_SVM_PTRS:
|
||||
case CL_KERNEL_EXEC_INFO_USM_PTRS_INTEL: {
|
||||
if ((paramValueSize == 0) ||
|
||||
if ((paramValueSize == 0 && paramValue) ||
|
||||
(paramValueSize % sizeof(void *)) ||
|
||||
(paramValue == nullptr)) {
|
||||
(paramValueSize && paramValue == nullptr)) {
|
||||
retVal = CL_INVALID_VALUE;
|
||||
TRACING_EXIT(ClSetKernelExecInfo, &retVal);
|
||||
return retVal;
|
||||
|
||||
Reference in New Issue
Block a user