mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Add HwHelper::getExtraExtensions
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4390590831
commit
a9226a9113
@@ -110,8 +110,9 @@ set(NEO_CORE_HELPERS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/uint16_avx2.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/uint16_sse4.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/vec.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions/${BRANCH_DIR_SUFFIX}/hw_cmds.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions/${BRANCH_DIR_SUFFIX}/engine_group_types.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}/engine_group_types.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}/hw_cmds.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}/hw_helper_extra.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions/mi_flush_args.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions/pipe_control_args_base.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}/pipe_control_args.h
|
||||
|
||||
17
shared/source/helpers/definitions/hw_helper_extra.inl
Normal file
17
shared/source/helpers/definitions/hw_helper_extra.inl
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/helpers/hw_helper.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
template <typename GfxFamily>
|
||||
std::string HwHelperHw<GfxFamily>::getExtraExtensions(const HardwareInfo &hwInfo) const {
|
||||
return "";
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
@@ -93,7 +93,7 @@ class HwHelper {
|
||||
virtual const StackVec<size_t, 3> getDeviceSubGroupSizes() const = 0;
|
||||
virtual const StackVec<uint32_t, 6> getThreadsPerEUConfigs() const = 0;
|
||||
virtual bool getEnableLocalMemory(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual std::string getExtensions() const = 0;
|
||||
virtual std::string getExtensions(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual std::string getDeviceMemoryName() const = 0;
|
||||
static uint32_t getMaxThreadsForVfe(const HardwareInfo &hwInfo);
|
||||
virtual uint32_t getMetricsLibraryGenId() const = 0;
|
||||
@@ -157,6 +157,7 @@ class HwHelper {
|
||||
|
||||
protected:
|
||||
virtual LocalMemoryAccessMode getDefaultLocalMemoryAccessMode(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual std::string getExtraExtensions(const HardwareInfo &hwInfo) const = 0;
|
||||
|
||||
HwHelper() = default;
|
||||
};
|
||||
@@ -265,7 +266,7 @@ class HwHelperHw : public HwHelper {
|
||||
|
||||
bool getEnableLocalMemory(const HardwareInfo &hwInfo) const override;
|
||||
|
||||
std::string getExtensions() const override;
|
||||
std::string getExtensions(const HardwareInfo &hwInfo) const override;
|
||||
|
||||
std::string getDeviceMemoryName() const override;
|
||||
|
||||
@@ -387,6 +388,8 @@ class HwHelperHw : public HwHelper {
|
||||
protected:
|
||||
LocalMemoryAccessMode getDefaultLocalMemoryAccessMode(const HardwareInfo &hwInfo) const override;
|
||||
|
||||
std::string getExtraExtensions(const HardwareInfo &hwInfo) const override;
|
||||
|
||||
static const AuxTranslationMode defaultAuxTranslationMode;
|
||||
HwHelperHw() = default;
|
||||
};
|
||||
|
||||
@@ -70,7 +70,7 @@ EngineGroupType HwHelperHw<GfxFamily>::getEngineGroupType(aub_stream::EngineType
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
std::string HwHelperHw<GfxFamily>::getExtensions() const {
|
||||
std::string HwHelperHw<GfxFamily>::getExtensions(const HardwareInfo &hwInfo) const {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user