mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Add mechanism to dynamically assign thread arbitration policy by one kernel
-use clSetKernelExecInfo with param CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_INTEL to change default value of ThreadArbitrationPolicy Change-Id: I15d0de0840ed14687c16ae04890b662bc157de76 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
@@ -4449,6 +4449,11 @@ cl_int CL_API_CALL clSetKernelExecInfo(cl_kernel kernel,
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_INTEL: {
|
||||
auto propertyValue = *static_cast<const uint32_t *>(paramValue);
|
||||
pKernel->setThreadArbitrationPolicy(ThreadArbitrationPolicy::getNewKernelArbitrationPolicy(propertyValue));
|
||||
return retVal;
|
||||
}
|
||||
case CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM: {
|
||||
retVal = CL_INVALID_OPERATION;
|
||||
TRACING_EXIT(clSetKernelExecInfo, &retVal);
|
||||
|
||||
Reference in New Issue
Block a user