Use hwInfo from root device environment [2/N]

Related-To: NEO-3857

Change-Id: Iad6832f36ae8b0ea218acb6b38fe6ba46599b9d9
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2020-02-18 13:29:30 +01:00
committed by sys_ocldev
parent e8a98b14b3
commit a69f393356
29 changed files with 88 additions and 82 deletions

View File

@@ -163,11 +163,11 @@ bool Platform::initialize(std::vector<std::unique_ptr<Device>> devices) {
}
}
auto hwInfo = executionEnvironment.getHardwareInfo();
auto hwInfo = clDevices[0]->getHardwareInfo();
const bool debuggerActive = executionEnvironment.debugger && executionEnvironment.debugger->isDebuggerActive();
if (clDevices[0]->getPreemptionMode() == PreemptionMode::MidThread || debuggerActive) {
auto sipType = SipKernel::getSipKernelType(hwInfo->platform.eRenderCoreFamily, clDevices[0]->isDebuggerActive());
auto sipType = SipKernel::getSipKernelType(hwInfo.platform.eRenderCoreFamily, clDevices[0]->isDebuggerActive());
initSipKernel(sipType, clDevices[0]->getDevice());
}