Stop using platformDevices to setup hw info on Linux

Related-To: NEO-4207
Change-Id: I6ab136c8cddf9652ba05b3ef4e81fb6ad594831b
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
Jablonski, Mateusz
2020-01-30 15:04:19 +01:00
committed by sys_ocldev
parent 0e3ab96298
commit 8bbb719a97
3 changed files with 21 additions and 4 deletions

View File

@@ -43,9 +43,8 @@ bool DeviceFactory::getDevices(size_t &numDevices, ExecutionEnvironment &executi
}
auto hardwareInfo = executionEnvironment.getMutableHardwareInfo();
const HardwareInfo *pCurrDevice = platformDevices[devNum];
HwInfoConfig *hwConfig = HwInfoConfig::get(pCurrDevice->platform.eProductFamily);
if (hwConfig->configureHwInfo(pCurrDevice, hardwareInfo, executionEnvironment.rootDeviceEnvironments[0]->osInterface.get())) {
HwInfoConfig *hwConfig = HwInfoConfig::get(hardwareInfo->platform.eProductFamily);
if (hwConfig->configureHwInfo(hardwareInfo, hardwareInfo, executionEnvironment.rootDeviceEnvironments[0]->osInterface.get())) {
return false;
}
executionEnvironment.calculateMaxOsContextCount();