mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Move builtins and compiler interface to RootDeviceEnvironment
Resolves: NEO-4355 Change-Id: Id1a3365673165d775a60a7e0a3f463e1b8f5a496 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ab3ae5fea7
commit
7cf57e04f9
@@ -164,12 +164,12 @@ bool Platform::initialize(std::vector<std::unique_ptr<Device>> devices) {
|
||||
}
|
||||
}
|
||||
|
||||
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());
|
||||
initSipKernel(sipType, clDevices[0]->getDevice());
|
||||
for (auto &clDevice : clDevices) {
|
||||
auto hwInfo = clDevice->getHardwareInfo();
|
||||
if (clDevice->getPreemptionMode() == PreemptionMode::MidThread || clDevice->isDebuggerActive()) {
|
||||
auto sipType = SipKernel::getSipKernelType(hwInfo.platform.eRenderCoreFamily, clDevice->isDebuggerActive());
|
||||
initSipKernel(sipType, clDevice->getDevice());
|
||||
}
|
||||
}
|
||||
|
||||
this->fillGlobalDispatchTable();
|
||||
|
||||
Reference in New Issue
Block a user