mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Correct logic in MultiRootDeviceFixture
Related-To: NEO-4589 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
4989cf308d
commit
baea633bdd
@ -3227,11 +3227,11 @@ TEST_F(KernelMultiRootDeviceTest, WhenGettingRootDeviceIndexThenCorrectRootDevic
|
||||
tokenSPS.PerThreadPrivateMemorySize = 112;
|
||||
kernelInfo->patchInfo.pAllocateStatelessPrivateSurface = &tokenSPS;
|
||||
|
||||
MockProgram program(context.get(), false, toClDeviceVector(*device));
|
||||
MockProgram program(context.get(), false, toClDeviceVector(*device1));
|
||||
std::unique_ptr<MockKernel> kernel(new MockKernel(&program, *kernelInfo));
|
||||
kernel->initialize();
|
||||
|
||||
auto privateSurface = kernel->kernelDeviceInfos[device->getRootDeviceIndex()].privateSurface;
|
||||
auto privateSurface = kernel->kernelDeviceInfos[device1->getRootDeviceIndex()].privateSurface;
|
||||
ASSERT_NE(nullptr, privateSurface);
|
||||
EXPECT_EQ(expectedRootDeviceIndex, privateSurface->getRootDeviceIndex());
|
||||
}
|
||||
|
Reference in New Issue
Block a user