mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Calculate maxOsContextCount after setting up hardware info
Change-Id: I98e0275bc84930eea4990ce1c2281f9f82cda66a Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
14c013f53b
commit
4ed3b46da1
@@ -126,6 +126,5 @@ void ExecutionEnvironment::prepareRootDeviceEnvironments(uint32_t numRootDevices
|
||||
rootDeviceEnvironments[rootDeviceIndex] = std::make_unique<RootDeviceEnvironment>(*this);
|
||||
}
|
||||
}
|
||||
calculateMaxOsContextCount();
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user