mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Related-To: NEO-3220 Change-Id: I16711af6d5b2ca51ab2c92b680d253124774534f Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
35 lines
1.2 KiB
C++
35 lines
1.2 KiB
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/debug_settings/debug_settings_manager.h"
|
|
#include "runtime/kernel/kernel.h"
|
|
|
|
namespace NEO {
|
|
bool Kernel::requiresCacheFlushCommand(const CommandQueue &commandQueue) const {
|
|
return false;
|
|
}
|
|
void Kernel::reconfigureKernel() {
|
|
}
|
|
int Kernel::setKernelThreadArbitrationPolicy(uint32_t policy) {
|
|
if (policy == CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_ROUND_ROBIN_INTEL) {
|
|
this->threadArbitrationPolicy = ThreadArbitrationPolicy::RoundRobin;
|
|
} else if (policy == CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_OLDEST_FIRST_INTEL) {
|
|
this->threadArbitrationPolicy = ThreadArbitrationPolicy::AgeBased;
|
|
} else if (policy == CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_AFTER_DEPENDENCY_ROUND_ROBIN_INTEL) {
|
|
this->threadArbitrationPolicy = ThreadArbitrationPolicy::RoundRobinAfterDependency;
|
|
} else {
|
|
this->threadArbitrationPolicy = ThreadArbitrationPolicy::NotPresent;
|
|
return CL_INVALID_VALUE;
|
|
}
|
|
return CL_SUCCESS;
|
|
}
|
|
|
|
bool Kernel::requiresPerDssBackedBuffer() const {
|
|
return DebugManager.flags.ForcePerDssBackedBufferProgramming.get();
|
|
}
|
|
|
|
} // namespace NEO
|