mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
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:
committed by
sys_ocldev
parent
e8a98b14b3
commit
a69f393356
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user