mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: unify hw configs for ADLP/ADLN/DG2
move them to common place Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
be9d1f0589
commit
30734fa844
@@ -153,16 +153,22 @@ void AdlpHwConfig::setupHardwareInfo(HardwareInfo *hwInfo, bool setupFeatureTabl
|
||||
gtSysInfo->MaxSlicesSupported = ADLP::maxSlicesSupported;
|
||||
gtSysInfo->MaxSubSlicesSupported = ADLP::maxSubslicesSupported;
|
||||
|
||||
gtSysInfo->L3CacheSizeInKb = 1;
|
||||
gtSysInfo->L3BankCount = 1;
|
||||
|
||||
gtSysInfo->CCSInfo.IsValid = true;
|
||||
gtSysInfo->CCSInfo.NumberOfCCSEnabled = 1;
|
||||
}
|
||||
gtSysInfo->L3CacheSizeInKb = 1;
|
||||
|
||||
if (setupFeatureTableAndWorkaroundTable) {
|
||||
setupFeatureAndWorkaroundTable(hwInfo);
|
||||
}
|
||||
};
|
||||
#include "hw_info_setup_adlp.inl"
|
||||
const HardwareInfo ADLP::hwInfo = AdlpHwConfig::hwInfo;
|
||||
|
||||
void setupADLPHardwareInfoImpl(HardwareInfo *hwInfo, bool setupFeatureTableAndWorkaroundTable, uint64_t hwInfoConfig, const CompilerProductHelper &compilerProductHelper) {
|
||||
AdlpHwConfig::setupHardwareInfo(hwInfo, setupFeatureTableAndWorkaroundTable, compilerProductHelper);
|
||||
}
|
||||
|
||||
void (*ADLP::setupHardwareInfo)(HardwareInfo *, bool, uint64_t, const CompilerProductHelper &) = setupADLPHardwareInfoImpl;
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user