diff --git a/runtime/helpers/built_ins_helper.cpp b/runtime/helpers/built_ins_helper.cpp index e81e646ffa..2c78f7d5cf 100644 --- a/runtime/helpers/built_ins_helper.cpp +++ b/runtime/helpers/built_ins_helper.cpp @@ -7,12 +7,12 @@ #include "runtime/helpers/built_ins_helper.h" -#include "runtime/device/cl_device.h" +#include "core/device/device.h" #include "runtime/program/program.h" namespace NEO { -const SipKernel &initSipKernel(SipKernelType type, ClDevice &device) { - return device.getExecutionEnvironment()->getBuiltIns()->getSipKernel(type, device.getDevice()); +const SipKernel &initSipKernel(SipKernelType type, Device &device) { + return device.getExecutionEnvironment()->getBuiltIns()->getSipKernel(type, device); } Program *createProgramForSip(ExecutionEnvironment &executionEnvironment, Context *context, diff --git a/runtime/helpers/built_ins_helper.h b/runtime/helpers/built_ins_helper.h index 884261d31d..22e3ac649d 100644 --- a/runtime/helpers/built_ins_helper.h +++ b/runtime/helpers/built_ins_helper.h @@ -10,9 +10,9 @@ #include "runtime/built_ins/built_ins.h" namespace NEO { -class ClDevice; +class Device; -const SipKernel &initSipKernel(SipKernelType type, ClDevice &device); +const SipKernel &initSipKernel(SipKernelType type, Device &device); Program *createProgramForSip(ExecutionEnvironment &executionEnvironment, Context *context, std::vector &binary, diff --git a/runtime/platform/platform.cpp b/runtime/platform/platform.cpp index 8a3d7116ef..f3df871269 100644 --- a/runtime/platform/platform.cpp +++ b/runtime/platform/platform.cpp @@ -168,7 +168,7 @@ bool Platform::initialize(std::vector> devices) { 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]); + initSipKernel(sipType, clDevices[0]->getDevice()); } this->fillGlobalDispatchTable(); diff --git a/unit_tests/helpers/built_ins_helper.cpp b/unit_tests/helpers/built_ins_helper.cpp index 1f006daa63..107b28fbd1 100644 --- a/unit_tests/helpers/built_ins_helper.cpp +++ b/unit_tests/helpers/built_ins_helper.cpp @@ -22,7 +22,7 @@ SipKernelType calledType = SipKernelType::COUNT; bool called = false; } // namespace MockSipData -const SipKernel &initSipKernel(SipKernelType type, ClDevice &device) { +const SipKernel &initSipKernel(SipKernelType type, Device &device) { MockSipData::calledType = type; MockSipData::mockSipKernel->type = type; MockSipData::called = true;