mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
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:
committed by
sys_ocldev
parent
0e3ab96298
commit
8bbb719a97
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user