test: don't call expectMemory on compressed data

Compressed memory can't be compared using expectMemory api.
Instead, compressed memory is transferred to usm host.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-04-14 19:16:40 +00:00
committed by Compute-Runtime-Automation
parent ebc85b7bef
commit 1432f6a7b2
5 changed files with 28 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022-2024 Intel Corporation
* Copyright (C) 2022-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -48,6 +48,7 @@ void MulticontextOclAubFixture::setUp(uint32_t numberOfTiles, EnabledCommandStre
}
context.reset(MockContext::create<MockContext>(nullptr, clDeviceVector, nullptr, nullptr, retVal));
EXPECT_EQ(CL_SUCCESS, retVal);
this->svmAllocsManager = context->getSVMAllocsManager();
}
commandQueues.resize(numberOfTiles);

View File

@@ -156,7 +156,9 @@ XE3_CORETEST_F(SystemMemFenceWithBlitterXe3Core, givenSystemMemFenceWhenGenerate
retVal = clEnqueueMemcpyINTEL(commandQueues[0][0].get(), true, deviceMemAlloc, buffer.data(), bufferSize, 0, nullptr, nullptr);
EXPECT_EQ(CL_SUCCESS, retVal);
expectMemory<FamilyType>(deviceMemAlloc, buffer.data(), bufferSize, 0, 0);
if (!tileDevices[0]->getDevice().getReleaseHelper()->getFtrXe2Compression()) {
expectMemory<FamilyType>(deviceMemAlloc, buffer.data(), bufferSize, 0, 0);
}
auto hostMemAlloc = clHostMemAllocINTEL(context.get(), nullptr, bufferSize, 0, &retVal);
EXPECT_EQ(CL_SUCCESS, retVal);