Dont pass device to Kernel's ctor

Kernel should reuse devices from program

Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-11-12 16:31:22 +01:00
committed by Compute-Runtime-Automation
parent 8323ddbb3b
commit a1b5d5a335
42 changed files with 254 additions and 262 deletions

View File

@@ -40,7 +40,7 @@ class KernelSlmArgTest : public Test<ClDeviceFixture> {
pKernelInfo->workloadInfo.slmStaticSize = 3 * KB;
program = std::make_unique<MockProgram>(toClDeviceVector(*pClDevice));
pKernel = new MockKernel(program.get(), *pKernelInfo, *pClDevice);
pKernel = new MockKernel(program.get(), *pKernelInfo);
ASSERT_EQ(CL_SUCCESS, pKernel->initialize());
pKernel->setKernelArgHandler(0, &Kernel::setArgLocal);