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:
Mateusz Jablonski
2020-11-18 17:06:55 +01:00
committed by Compute-Runtime-Automation
parent 4c55491dc1
commit 2003fe46a6
14 changed files with 26 additions and 48 deletions

View File

@@ -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;