Files
compute-runtime/opencl/source/helpers/cl_hw_helper_pvc_and_later.inl

33 lines
1.0 KiB
Plaintext
Raw Normal View History

/*
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/extensions/public/cl_ext_private.h"
template <>
std::vector<uint32_t> ClHwHelperHw<Family>::getSupportedThreadArbitrationPolicies() const {
return std::vector<uint32_t>{CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_OLDEST_FIRST_INTEL, CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_ROUND_ROBIN_INTEL, CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_AFTER_DEPENDENCY_ROUND_ROBIN_INTEL, CL_KERNEL_EXEC_INFO_THREAD_ARBITRATION_POLICY_STALL_BASED_ROUND_ROBIN_INTEL};
}
template <>
inline bool ClHwHelperHw<Family>::getQueueFamilyName(std::string &name, EngineGroupType type) const {
switch (type) {
case EngineGroupType::RenderCompute:
name = "cccs";
return true;
case EngineGroupType::LinkedCopy:
name = "linked bcs";
return true;
default:
return false;
}
}
template <>
bool ClHwHelperHw<Family>::allowImageCompression(cl_image_format format) const {
return true;
}