mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:41:26 +08:00
Don't store Context in Kernel
reuse Context from Program Related-To: NEO-5001 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4c55491dc1
commit
2003fe46a6
@@ -189,11 +189,7 @@ class Kernel : public BaseObject<_cl_kernel> {
|
||||
}
|
||||
|
||||
Context &getContext() const {
|
||||
return context ? *context : program->getContext();
|
||||
}
|
||||
|
||||
void setContext(Context *context) {
|
||||
this->context = context;
|
||||
return program->getContext();
|
||||
}
|
||||
|
||||
Program *getProgram() const { return program; }
|
||||
@@ -515,7 +511,6 @@ class Kernel : public BaseObject<_cl_kernel> {
|
||||
}
|
||||
|
||||
Program *program;
|
||||
Context *context = nullptr;
|
||||
const ClDeviceVector &deviceVector;
|
||||
const KernelInfo &kernelInfo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user