Calculate maxOsContextCount after setting up hardware info

Change-Id: I98e0275bc84930eea4990ce1c2281f9f82cda66a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-12-24 09:59:49 +01:00
committed by sys_ocldev
parent 14c013f53b
commit 4ed3b46da1
9 changed files with 8 additions and 1 deletions

View File

@@ -126,6 +126,5 @@ void ExecutionEnvironment::prepareRootDeviceEnvironments(uint32_t numRootDevices
rootDeviceEnvironments[rootDeviceIndex] = std::make_unique<RootDeviceEnvironment>(*this);
}
}
calculateMaxOsContextCount();
}
} // namespace NEO

View File

@@ -46,6 +46,7 @@ bool DeviceFactory::getDevicesForProductFamilyOverride(size_t &numDevices, Execu
HwInfoConfig *hwConfig = HwInfoConfig::get(hardwareInfo->platform.eProductFamily);
hwConfig->configureHardwareCustom(hardwareInfo, nullptr);
executionEnvironment.calculateMaxOsContextCount();
numDevices = numRootDevices;
DeviceFactory::numDevices = numDevices;
auto csrType = DebugManager.flags.SetCommandStreamReceiver.get();

View File

@@ -43,6 +43,7 @@ bool DeviceFactory::getDevices(size_t &numDevices, ExecutionEnvironment &executi
if (hwConfig->configureHwInfo(pCurrDevice, hardwareInfo, executionEnvironment.osInterface.get())) {
return false;
}
executionEnvironment.calculateMaxOsContextCount();
numDevices = numRootDevices;
DeviceFactory::numDevices = numDevices;

View File

@@ -35,6 +35,7 @@ bool DeviceFactory::getDevices(size_t &numDevices, ExecutionEnvironment &executi
if (!wddm->init(*hardwareInfo)) {
return false;
}
executionEnvironment.calculateMaxOsContextCount();
executionEnvironment.memoryOperationsInterface = std::make_unique<WddmMemoryOperationsHandler>(wddm.get());
executionEnvironment.osInterface = std::make_unique<OSInterface>();