mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Pass Device to Kernel
Related-To: NEO-5001 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1544c6d001
commit
7a58e7bc3e
@@ -95,12 +95,12 @@ class CloneKernelTest : public MultiRootDeviceWithSubDevicesFixture {
|
||||
|
||||
for (auto &rootDeviceIndex : this->context->getRootDeviceIndices()) {
|
||||
|
||||
pSourceKernel[rootDeviceIndex] = new MockKernel(pProgram.get(), kernelInfos, rootDeviceIndex);
|
||||
pSourceKernel[rootDeviceIndex] = new MockKernel(pProgram.get(), kernelInfos, *deviceFactory->rootDevices[rootDeviceIndex]);
|
||||
ASSERT_EQ(CL_SUCCESS, pSourceKernel[rootDeviceIndex]->initialize());
|
||||
char pSourceCrossThreadData[64] = {};
|
||||
sourceKernels[rootDeviceIndex] = pSourceKernel[rootDeviceIndex];
|
||||
|
||||
pClonedKernel[rootDeviceIndex] = new MockKernel(pProgram.get(), kernelInfos, rootDeviceIndex);
|
||||
pClonedKernel[rootDeviceIndex] = new MockKernel(pProgram.get(), kernelInfos, *deviceFactory->rootDevices[rootDeviceIndex]);
|
||||
ASSERT_EQ(CL_SUCCESS, pClonedKernel[rootDeviceIndex]->initialize());
|
||||
char pClonedCrossThreadData[64] = {};
|
||||
clonedKernels[rootDeviceIndex] = pClonedKernel[rootDeviceIndex];
|
||||
|
||||
Reference in New Issue
Block a user