fix: init releaseHelper after ipVersion setup

Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2023-06-06 11:41:57 +00:00
committed by Compute-Runtime-Automation
parent 831363e51b
commit dadd19e17b
6 changed files with 86 additions and 2 deletions

View File

@@ -57,7 +57,13 @@ bool DeviceFactory::prepareDeviceEnvironmentsForProductFamilyOverride(ExecutionE
for (auto rootDeviceIndex = 0u; rootDeviceIndex < numRootDevices; rootDeviceIndex++) {
auto &rootDeviceEnvironment = *executionEnvironment.rootDeviceEnvironments[rootDeviceIndex].get();
rootDeviceEnvironment.setHwInfoAndInitHelpers(hwInfoConst);
rootDeviceEnvironment.setHwInfo(hwInfoConst);
rootDeviceEnvironment.initProductHelper();
rootDeviceEnvironment.initGfxCoreHelper();
rootDeviceEnvironment.initApiGfxCoreHelper();
rootDeviceEnvironment.initCompilerProductHelper();
auto hardwareInfo = rootDeviceEnvironment.getMutableHardwareInfo();
if (DebugManager.flags.OverrideRevision.get() != -1) {
@@ -92,6 +98,8 @@ bool DeviceFactory::prepareDeviceEnvironmentsForProductFamilyOverride(ExecutionE
hardwareInfo->ipVersion = DebugManager.flags.OverrideHwIpVersion.get();
}
rootDeviceEnvironment.initReleaseHelper();
if (DebugManager.flags.OverrideGpuAddressSpace.get() != -1) {
hardwareInfo->capabilityTable.gpuAddressSpace = maxNBitValue(static_cast<uint64_t>(DebugManager.flags.OverrideGpuAddressSpace.get()));
}