Stop using platformDevices to setup hw info on Linux

Related-To: NEO-4207
Change-Id: I9c0eeea20342d26be99a7a0035b2b85edd5d8abd
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 1df7c439d4
commit a5d348ec08
7 changed files with 37 additions and 7 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();