diff --git a/opencl/source/program/program.cpp b/opencl/source/program/program.cpp index 927ec074ac..5bb2a4938d 100644 --- a/opencl/source/program/program.cpp +++ b/opencl/source/program/program.cpp @@ -264,10 +264,6 @@ cl_int Program::updateSpecializationConstant(cl_uint specId, size_t specSize, co return CL_INVALID_SPEC_ID; } -void Program::setDevice(Device *device) { - this->pDevice = device; -} - cl_int Program::getSource(std::string &binary) const { cl_int retVal = CL_INVALID_PROGRAM; binary = {}; diff --git a/opencl/source/program/program.h b/opencl/source/program/program.h index 6584853258..5dc8ab3040 100644 --- a/opencl/source/program/program.h +++ b/opencl/source/program/program.h @@ -191,8 +191,6 @@ class Program : public BaseObject<_cl_program> { return *pDevice; } - void setDevice(Device *device); - cl_int processSpirBinary(const void *pBinary, size_t binarySize, bool isSpirV); cl_int getSource(std::string &binary) const; diff --git a/shared/source/built_ins/built_ins.cpp b/shared/source/built_ins/built_ins.cpp index 0e4bc21a00..1309629afc 100644 --- a/shared/source/built_ins/built_ins.cpp +++ b/shared/source/built_ins/built_ins.cpp @@ -54,8 +54,6 @@ const SipKernel &BuiltIns::getSipKernel(SipKernelType type, Device &device) { DEBUG_BREAK_IF(retVal != 0); UNRECOVERABLE_IF(program == nullptr); - program->setDevice(&device); - retVal = program->processGenBinary(device.getRootDeviceIndex()); DEBUG_BREAK_IF(retVal != 0);