mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +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:
@@ -58,6 +58,7 @@ CompletionStamp &CommandMapUnmap::submit(uint32_t taskLevel, bool terminated) {
|
||||
PreemptionHelper::taskPreemptionMode(device, multiDispatch), //preemptionMode
|
||||
GrfConfig::DefaultGrfNumber, //numGrfRequired
|
||||
L3CachingSettings::l3CacheOn, //l3CacheSettings
|
||||
ThreadArbitrationPolicy::NotPresent, //threadArbitrationPolicy
|
||||
commandQueue.getSliceCount(), //sliceCount
|
||||
true, //blocking
|
||||
true, //dcFlush
|
||||
@@ -212,6 +213,7 @@ CompletionStamp &CommandComputeKernel::submit(uint32_t taskLevel, bool terminate
|
||||
preemptionMode, //preemptionMode
|
||||
kernel->getKernelInfo().patchInfo.executionEnvironment->NumGRFRequired, //numGrfRequired
|
||||
L3CachingSettings::l3CacheOn, //l3CacheSettings
|
||||
kernel->getThreadArbitrationPolicy(), //threadArbitrationPolicy
|
||||
commandQueue.getSliceCount(), //sliceCount
|
||||
true, //blocking
|
||||
flushDC, //dcFlush
|
||||
@@ -316,6 +318,7 @@ CompletionStamp &CommandWithoutKernel::submit(uint32_t taskLevel, bool terminate
|
||||
commandQueue.getDevice().getPreemptionMode(), //preemptionMode
|
||||
GrfConfig::DefaultGrfNumber, //numGrfRequired
|
||||
L3CachingSettings::l3CacheOn, //l3CacheSettings
|
||||
ThreadArbitrationPolicy::NotPresent, //threadArbitrationPolicy
|
||||
commandQueue.getSliceCount(), //sliceCount
|
||||
true, //blocking
|
||||
false, //dcFlush
|
||||
|
||||
Reference in New Issue
Block a user