2018-09-21 14:06:35 +02:00
|
|
|
/*
|
2019-12-17 17:04:57 +01:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2018-09-21 14:06:35 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
2020-02-24 10:22:30 +01:00
|
|
|
|
2020-02-22 22:50:57 +01:00
|
|
|
#include "opencl/source/kernel/kernel.h"
|
2018-09-21 14:06:35 +02:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2019-02-21 16:59:10 +01:00
|
|
|
bool Kernel::requiresCacheFlushCommand(const CommandQueue &commandQueue) const {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2020-12-10 13:22:10 +00:00
|
|
|
void Kernel::reconfigureKernel(uint32_t rootDeviceIndex) {
|
2018-09-21 14:06:35 +02:00
|
|
|
}
|
2019-12-17 17:04:57 +01:00
|
|
|
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;
|
|
|
|
|
}
|
2020-01-29 14:15:10 +01:00
|
|
|
|
2020-12-07 14:41:52 +00:00
|
|
|
bool Kernel::requiresPerDssBackedBuffer(uint32_t rootDeviceIndex) const {
|
2020-01-29 14:15:10 +01:00
|
|
|
return DebugManager.flags.ForcePerDssBackedBufferProgramming.get();
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-24 16:07:54 +00:00
|
|
|
bool Kernel::requiresLimitedWorkgroupSize(uint32_t rootDeviceIndex) const {
|
2020-05-18 16:33:07 +02:00
|
|
|
return this->isBuiltIn;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-04 13:03:51 +00:00
|
|
|
int32_t Kernel::setAdditionalKernelExecInfoWithParam(uint32_t paramName, size_t paramValueSize, const void *paramValue) {
|
2020-09-02 11:38:54 +02:00
|
|
|
return CL_INVALID_VALUE;
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-15 17:13:28 +00:00
|
|
|
void Kernel::updateAuxTranslationRequired() {
|
|
|
|
|
}
|
2020-05-18 16:33:07 +02:00
|
|
|
} // namespace NEO
|