Remove OsInterface creation from getDevices on Windows.

Change-Id: I33a141803c336eeaaa6b2702b92515420de97cc1
This commit is contained in:
Mrozek, Michal 2018-08-07 13:42:31 +02:00 committed by sys_ocldev
parent 02216e198d
commit 4eb2e64231
1 changed files with 1 additions and 3 deletions

View File

@ -42,8 +42,6 @@ bool DeviceFactory::getDevices(HardwareInfo **pHWInfos, size_t &numDevices) {
totalDeviceCount = DebugManager.flags.CreateMultipleDevices.get(); totalDeviceCount = DebugManager.flags.CreateMultipleDevices.get();
} }
std::unique_ptr<HardwareInfo[]> tempHwInfos(new HardwareInfo[totalDeviceCount]); std::unique_ptr<HardwareInfo[]> tempHwInfos(new HardwareInfo[totalDeviceCount]);
std::unique_ptr<OSInterface> osInterface = std::unique_ptr<OSInterface>(new OSInterface());
numDevices = 0; numDevices = 0;
while (numDevices < totalDeviceCount) { while (numDevices < totalDeviceCount) {
@ -52,7 +50,7 @@ bool DeviceFactory::getDevices(HardwareInfo **pHWInfos, size_t &numDevices) {
} }
HwInfoConfig *hwConfig = HwInfoConfig::get(tempHwInfos[numDevices].pPlatform->eProductFamily); HwInfoConfig *hwConfig = HwInfoConfig::get(tempHwInfos[numDevices].pPlatform->eProductFamily);
if (hwConfig->configureHwInfo(&tempHwInfos[numDevices], &tempHwInfos[numDevices], osInterface.get())) { if (hwConfig->configureHwInfo(&tempHwInfos[numDevices], &tempHwInfos[numDevices], nullptr)) {
return false; return false;
} }
numDevices++; numDevices++;