refactor: remove redundant parameter from HardwareInfo ctor

hw ip version is queried from KMD or set based on device id and rev id

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-07-31 12:48:31 +00:00
committed by Compute-Runtime-Automation
parent 43654bfc02
commit 1e95ed33f9
24 changed files with 57 additions and 104 deletions

View File

@@ -12,7 +12,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -138,8 +137,7 @@ const HardwareInfo EhlHwConfig::hwInfo = {
&EHL::featureTable,
&EHL::workaroundTable,
&EhlHwConfig::gtSystemInfo,
EHL::capabilityTable,
AOT::EHL};
EHL::capabilityTable};
GT_SYSTEM_INFO EhlHwConfig::gtSystemInfo = {0};
void EhlHwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -12,7 +12,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -138,8 +137,7 @@ const HardwareInfo IcllpHw1x8x8::hwInfo = {
&ICLLP::featureTable,
&ICLLP::workaroundTable,
&IcllpHw1x8x8::gtSystemInfo,
ICLLP::capabilityTable,
AOT::ICL};
ICLLP::capabilityTable};
GT_SYSTEM_INFO IcllpHw1x8x8::gtSystemInfo = {0};
void IcllpHw1x8x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
@@ -160,8 +158,7 @@ const HardwareInfo IcllpHw1x4x8::hwInfo = {
&ICLLP::featureTable,
&ICLLP::workaroundTable,
&IcllpHw1x4x8::gtSystemInfo,
ICLLP::capabilityTable,
AOT::ICL};
ICLLP::capabilityTable};
GT_SYSTEM_INFO IcllpHw1x4x8::gtSystemInfo = {0};
void IcllpHw1x4x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
@@ -179,8 +176,7 @@ const HardwareInfo IcllpHw1x6x8::hwInfo = {
&ICLLP::featureTable,
&ICLLP::workaroundTable,
&IcllpHw1x6x8::gtSystemInfo,
ICLLP::capabilityTable,
AOT::ICL};
ICLLP::capabilityTable};
GT_SYSTEM_INFO IcllpHw1x6x8::gtSystemInfo = {0};
void IcllpHw1x6x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -12,7 +12,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -138,8 +137,8 @@ const HardwareInfo LkfHw1x8x8::hwInfo = {
&LKF::featureTable,
&LKF::workaroundTable,
&LkfHw1x8x8::gtSystemInfo,
LKF::capabilityTable,
AOT::LKF};
LKF::capabilityTable};
GT_SYSTEM_INFO LkfHw1x8x8::gtSystemInfo = {0};
void LkfHw1x8x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
LKF::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);

View File

@@ -14,7 +14,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -137,8 +136,7 @@ const HardwareInfo AdlnHwConfig::hwInfo = {
&ADLN::featureTable,
&ADLN::workaroundTable,
&AdlnHwConfig::gtSystemInfo,
ADLN::capabilityTable,
AOT::ADL_N};
ADLN::capabilityTable};
GT_SYSTEM_INFO AdlnHwConfig::gtSystemInfo = {0};
void AdlnHwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -14,7 +14,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -137,8 +136,7 @@ const HardwareInfo AdlpHwConfig::hwInfo = {
&ADLP::featureTable,
&ADLP::workaroundTable,
&AdlpHwConfig::gtSystemInfo,
ADLP::capabilityTable,
AOT::ADL_P};
ADLP::capabilityTable};
GT_SYSTEM_INFO AdlpHwConfig::gtSystemInfo = {0};
void AdlpHwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -14,7 +14,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -137,8 +136,7 @@ const HardwareInfo AdlsHwConfig::hwInfo = {
&ADLS::featureTable,
&ADLS::workaroundTable,
&AdlsHwConfig::gtSystemInfo,
ADLS::capabilityTable,
AOT::ADL_S};
ADLS::capabilityTable};
GT_SYSTEM_INFO AdlsHwConfig::gtSystemInfo = {0};
void AdlsHwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -14,7 +14,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -142,8 +141,7 @@ const HardwareInfo Dg1HwConfig::hwInfo = {
&DG1::featureTable,
&DG1::workaroundTable,
&Dg1HwConfig::gtSystemInfo,
DG1::capabilityTable,
AOT::DG1};
DG1::capabilityTable};
GT_SYSTEM_INFO Dg1HwConfig::gtSystemInfo = {0};
void Dg1HwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -14,7 +14,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -140,8 +139,7 @@ const HardwareInfo RklHwConfig::hwInfo = {
&RKL::featureTable,
&RKL::workaroundTable,
&RklHwConfig::gtSystemInfo,
RKL::capabilityTable,
AOT::RKL};
RKL::capabilityTable};
GT_SYSTEM_INFO RklHwConfig::gtSystemInfo = {0};
void RklHwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -14,7 +14,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -137,8 +136,7 @@ const HardwareInfo TgllpHw1x6x16::hwInfo = {
&TGLLP::featureTable,
&TGLLP::workaroundTable,
&TgllpHw1x6x16::gtSystemInfo,
TGLLP::capabilityTable,
AOT::TGL};
TGLLP::capabilityTable};
GT_SYSTEM_INFO TgllpHw1x6x16::gtSystemInfo = {0};
void TgllpHw1x6x16::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
@@ -165,8 +163,7 @@ const HardwareInfo TgllpHw1x2x16::hwInfo = {
&TGLLP::featureTable,
&TGLLP::workaroundTable,
&TgllpHw1x2x16::gtSystemInfo,
TGLLP::capabilityTable,
AOT::TGL};
TGLLP::capabilityTable};
GT_SYSTEM_INFO TgllpHw1x2x16::gtSystemInfo = {0};
void TgllpHw1x2x16::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -12,7 +12,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -127,8 +126,7 @@ const HardwareInfo BdwHw1x2x6::hwInfo = {
&BDW::featureTable,
&BDW::workaroundTable,
&BdwHw1x2x6::gtSystemInfo,
BDW::capabilityTable,
AOT::BDW};
BDW::capabilityTable};
GT_SYSTEM_INFO BdwHw1x2x6::gtSystemInfo = {0};
void BdwHw1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
@@ -146,8 +144,7 @@ const HardwareInfo BdwHw1x3x6::hwInfo = {
&BDW::featureTable,
&BDW::workaroundTable,
&BdwHw1x3x6::gtSystemInfo,
BDW::capabilityTable,
AOT::BDW};
BDW::capabilityTable};
GT_SYSTEM_INFO BdwHw1x3x6::gtSystemInfo = {0};
void BdwHw1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
BDW::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -164,8 +161,7 @@ const HardwareInfo BdwHw1x3x8::hwInfo = {
&BDW::featureTable,
&BDW::workaroundTable,
&BdwHw1x3x8::gtSystemInfo,
BDW::capabilityTable,
AOT::BDW};
BDW::capabilityTable};
GT_SYSTEM_INFO BdwHw1x3x8::gtSystemInfo = {0};
void BdwHw1x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
BDW::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -182,8 +178,7 @@ const HardwareInfo BdwHw2x3x8::hwInfo = {
&BDW::featureTable,
&BDW::workaroundTable,
&BdwHw2x3x8::gtSystemInfo,
BDW::capabilityTable,
AOT::BDW};
BDW::capabilityTable};
GT_SYSTEM_INFO BdwHw2x3x8::gtSystemInfo = {0};
void BdwHw2x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
BDW::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);

View File

@@ -12,7 +12,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -136,8 +135,7 @@ const HardwareInfo BxtHw1x2x6::hwInfo = {
&BXT::featureTable,
&BXT::workaroundTable,
&BxtHw1x2x6::gtSystemInfo,
BXT::capabilityTable,
AOT::APL};
BXT::capabilityTable};
GT_SYSTEM_INFO BxtHw1x2x6::gtSystemInfo = {0};
void BxtHw1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
BXT::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -154,8 +152,7 @@ const HardwareInfo BxtHw1x3x6::hwInfo = {
&BXT::featureTable,
&BXT::workaroundTable,
&BxtHw1x3x6::gtSystemInfo,
BXT::capabilityTable,
AOT::APL};
BXT::capabilityTable};
GT_SYSTEM_INFO BxtHw1x3x6::gtSystemInfo = {0};
void BxtHw1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
BXT::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);

View File

@@ -13,7 +13,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -136,8 +135,7 @@ const HardwareInfo CflHw1x2x6::hwInfo = {
&CFL::featureTable,
&CFL::workaroundTable,
&CflHw1x2x6::gtSystemInfo,
CFL::capabilityTable,
AOT::CFL};
CFL::capabilityTable};
GT_SYSTEM_INFO CflHw1x2x6::gtSystemInfo = {0};
void CflHw1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
CFL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -154,8 +152,7 @@ const HardwareInfo CflHw1x3x6::hwInfo = {
&CFL::featureTable,
&CFL::workaroundTable,
&CflHw1x3x6::gtSystemInfo,
CFL::capabilityTable,
AOT::CFL};
CFL::capabilityTable};
GT_SYSTEM_INFO CflHw1x3x6::gtSystemInfo = {0};
void CflHw1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
@@ -173,8 +170,7 @@ const HardwareInfo CflHw1x3x8::hwInfo = {
&CFL::featureTable,
&CFL::workaroundTable,
&CflHw1x3x8::gtSystemInfo,
CFL::capabilityTable,
AOT::CFL};
CFL::capabilityTable};
GT_SYSTEM_INFO CflHw1x3x8::gtSystemInfo = {0};
void CflHw1x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
@@ -192,8 +188,7 @@ const HardwareInfo CflHw2x3x8::hwInfo = {
&CFL::featureTable,
&CFL::workaroundTable,
&CflHw2x3x8::gtSystemInfo,
CFL::capabilityTable,
AOT::CFL};
CFL::capabilityTable};
GT_SYSTEM_INFO CflHw2x3x8::gtSystemInfo = {0};
void CflHw2x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
CFL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -210,8 +205,7 @@ const HardwareInfo CflHw3x3x8::hwInfo = {
&CFL::featureTable,
&CFL::workaroundTable,
&CflHw3x3x8::gtSystemInfo,
CFL::capabilityTable,
AOT::CFL};
CFL::capabilityTable};
GT_SYSTEM_INFO CflHw3x3x8::gtSystemInfo = {0};
void CflHw3x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
CFL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);

View File

@@ -12,7 +12,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -137,8 +136,7 @@ const HardwareInfo GlkHw1x3x6::hwInfo = {
&GLK::featureTable,
&GLK::workaroundTable,
&GlkHw1x3x6::gtSystemInfo,
GLK::capabilityTable,
AOT::GLK};
GLK::capabilityTable};
GT_SYSTEM_INFO GlkHw1x3x6::gtSystemInfo = {0};
void GlkHw1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
@@ -156,8 +154,7 @@ const HardwareInfo GlkHw1x2x6::hwInfo = {
&GLK::featureTable,
&GLK::workaroundTable,
&GlkHw1x2x6::gtSystemInfo,
GLK::capabilityTable,
AOT::GLK};
GLK::capabilityTable};
GT_SYSTEM_INFO GlkHw1x2x6::gtSystemInfo = {0};
void GlkHw1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -13,7 +13,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -142,8 +141,8 @@ const HardwareInfo KblHw1x2x6::hwInfo = {
&KBL::featureTable,
&KBL::workaroundTable,
&KblHw1x2x6::gtSystemInfo,
KBL::capabilityTable,
AOT::KBL};
KBL::capabilityTable};
GT_SYSTEM_INFO KblHw1x2x6::gtSystemInfo = {0};
void KblHw1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
KBL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -160,8 +159,7 @@ const HardwareInfo KblHw1x3x6::hwInfo = {
&KBL::featureTable,
&KBL::workaroundTable,
&KblHw1x3x6::gtSystemInfo,
KBL::capabilityTable,
AOT::KBL};
KBL::capabilityTable};
GT_SYSTEM_INFO KblHw1x3x6::gtSystemInfo = {0};
void KblHw1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
@@ -179,8 +177,8 @@ const HardwareInfo KblHw1x3x8::hwInfo = {
&KBL::featureTable,
&KBL::workaroundTable,
&KblHw1x3x8::gtSystemInfo,
KBL::capabilityTable,
AOT::KBL};
KBL::capabilityTable};
GT_SYSTEM_INFO KblHw1x3x8::gtSystemInfo = {0};
void KblHw1x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
KBL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -197,8 +195,8 @@ const HardwareInfo KblHw2x3x8::hwInfo = {
&KBL::featureTable,
&KBL::workaroundTable,
&KblHw2x3x8::gtSystemInfo,
KBL::capabilityTable,
AOT::KBL};
KBL::capabilityTable};
GT_SYSTEM_INFO KblHw2x3x8::gtSystemInfo = {0};
void KblHw2x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
KBL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -215,8 +213,8 @@ const HardwareInfo KblHw3x3x8::hwInfo = {
&KBL::featureTable,
&KBL::workaroundTable,
&KblHw3x3x8::gtSystemInfo,
KBL::capabilityTable,
AOT::KBL};
KBL::capabilityTable};
GT_SYSTEM_INFO KblHw3x3x8::gtSystemInfo = {0};
void KblHw3x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
KBL::setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);

View File

@@ -12,7 +12,6 @@
#include "shared/source/helpers/constants.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -148,8 +147,8 @@ const HardwareInfo SklHw1x2x6::hwInfo = {
&SKL::featureTable,
&SKL::workaroundTable,
&SklHw1x2x6::gtSystemInfo,
SKL::capabilityTable,
AOT::SKL};
SKL::capabilityTable};
GT_SYSTEM_INFO SklHw1x2x6::gtSystemInfo = {0};
void SklHw1x2x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -166,8 +165,8 @@ const HardwareInfo SklHw1x3x6::hwInfo = {
&SKL::featureTable,
&SKL::workaroundTable,
&SklHw1x3x6::gtSystemInfo,
SKL::capabilityTable,
AOT::SKL};
SKL::capabilityTable};
GT_SYSTEM_INFO SklHw1x3x6::gtSystemInfo = {0};
void SklHw1x3x6::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -184,8 +183,8 @@ const HardwareInfo SklHw1x3x8::hwInfo = {
&SKL::featureTable,
&SKL::workaroundTable,
&SklHw1x3x8::gtSystemInfo,
SKL::capabilityTable,
AOT::SKL};
SKL::capabilityTable};
GT_SYSTEM_INFO SklHw1x3x8::gtSystemInfo = {0};
void SklHw1x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -202,8 +201,8 @@ const HardwareInfo SklHw2x3x8::hwInfo = {
&SKL::featureTable,
&SKL::workaroundTable,
&SklHw2x3x8::gtSystemInfo,
SKL::capabilityTable,
AOT::SKL};
SKL::capabilityTable};
GT_SYSTEM_INFO SklHw2x3x8::gtSystemInfo = {0};
void SklHw2x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
@@ -220,8 +219,8 @@ const HardwareInfo SklHw3x3x8::hwInfo = {
&SKL::featureTable,
&SKL::workaroundTable,
&SklHw3x3x8::gtSystemInfo,
SKL::capabilityTable,
AOT::SKL};
SKL::capabilityTable};
GT_SYSTEM_INFO SklHw3x3x8::gtSystemInfo = {0};
void SklHw3x3x8::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
setupHardwareInfoBase(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);

View File

@@ -15,8 +15,8 @@
namespace NEO {
HardwareInfo::HardwareInfo(const PLATFORM *platform, const FeatureTable *featureTable, const WorkaroundTable *workaroundTable,
const GT_SYSTEM_INFO *gtSystemInfo, const RuntimeCapabilityTable &capabilityTable, HardwareIpVersion ipVersion)
: platform(*platform), featureTable(*featureTable), workaroundTable(*workaroundTable), gtSystemInfo(*gtSystemInfo), capabilityTable(capabilityTable), ipVersion(ipVersion) {
const GT_SYSTEM_INFO *gtSystemInfo, const RuntimeCapabilityTable &capabilityTable)
: platform(*platform), featureTable(*featureTable), workaroundTable(*workaroundTable), gtSystemInfo(*gtSystemInfo), capabilityTable(capabilityTable) {
}
// Global table of hardware prefixes

View File

@@ -140,7 +140,7 @@ inline bool operator==(const RuntimeCapabilityTable &lhs, const RuntimeCapabilit
struct HardwareInfo {
HardwareInfo() = default;
HardwareInfo(const PLATFORM *platform, const FeatureTable *featureTable, const WorkaroundTable *workaroundTable,
const GT_SYSTEM_INFO *gtSystemInfo, const RuntimeCapabilityTable &capabilityTable, HardwareIpVersion ipVersion);
const GT_SYSTEM_INFO *gtSystemInfo, const RuntimeCapabilityTable &capabilityTable);
PLATFORM platform{};
FeatureTable featureTable{};

View File

@@ -94,9 +94,7 @@ bool DeviceFactory::prepareDeviceEnvironmentsForProductFamilyOverride(ExecutionE
}
}
if (DebugManager.flags.OverrideHwIpVersion.get() != -1) {
hardwareInfo->ipVersion = DebugManager.flags.OverrideHwIpVersion.get();
}
hardwareInfo->ipVersion.value = compilerProductHelper.getHwIpVersion(*hardwareInfo);
rootDeviceEnvironment.initReleaseHelper();

View File

@@ -15,7 +15,6 @@
#include "shared/source/xe_hpc_core/pvc/device_ids_configs_pvc.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -176,8 +175,7 @@ const HardwareInfo PvcHwConfig::hwInfo = {
&PVC::featureTable,
&PVC::workaroundTable,
&PvcHwConfig::gtSystemInfo,
PVC::capabilityTable,
AOT::PVC_XT_C0};
PVC::capabilityTable};
GT_SYSTEM_INFO PvcHwConfig::gtSystemInfo = {0};
void PvcHwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -14,7 +14,6 @@
#include "aubstream/engine_node.h"
#include "device_ids_configs_dg2.h"
#include "platforms.h"
namespace NEO {
@@ -150,8 +149,8 @@ const HardwareInfo Dg2HwConfig::hwInfo = {
&DG2::featureTable,
&DG2::workaroundTable,
&Dg2HwConfig::gtSystemInfo,
DG2::capabilityTable,
AOT::DG2_G10_A0};
DG2::capabilityTable};
GT_SYSTEM_INFO Dg2HwConfig::gtSystemInfo = {0};
void Dg2HwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {
GT_SYSTEM_INFO *gtSysInfo = &hwInfo->gtSystemInfo;

View File

@@ -13,7 +13,6 @@
#include "shared/source/xe_hpg_core/hw_cmds_mtl.h"
#include "aubstream/engine_node.h"
#include "platforms.h"
namespace NEO {
@@ -150,8 +149,7 @@ const HardwareInfo MtlHwConfig::hwInfo = {
&MTL::featureTable,
&MTL::workaroundTable,
&MtlHwConfig::gtSystemInfo,
MTL::capabilityTable,
AOT::MTL_M_A0};
MTL::capabilityTable};
GT_SYSTEM_INFO MtlHwConfig::gtSystemInfo = {0};
void MtlHwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, const CompilerProductHelper &compilerProductHelper) {

View File

@@ -40,7 +40,7 @@ TEST(AubHelper, GivenMultipleSubDevicesWhenGettingDeviceCountThenCorrectValueIsR
RuntimeCapabilityTable capTable = {};
GT_SYSTEM_INFO sysInfo = {};
PLATFORM platform = {};
HardwareInfo hwInfo{&platform, &featureTable, &workaroundTable, &sysInfo, capTable, {}};
HardwareInfo hwInfo{&platform, &featureTable, &workaroundTable, &sysInfo, capTable};
DebugManager.flags.CreateMultipleSubDevices.set(2);
uint32_t devicesCount = GfxCoreHelper::getSubDevicesCount(&hwInfo);