mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
test: adjust test to respect patching relocations in module
Related-To: NEO-5081 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3900c9d24a
commit
98ecfb1275
@@ -728,7 +728,14 @@ HWTEST_F(NotifyModuleLoadTest, givenDebuggingEnabledWhenModuleIsCreatedAndFullyL
|
||||
|
||||
module->initialize(&moduleDesc, neoDevice);
|
||||
|
||||
EXPECT_EQ(5, memoryOperationsHandler->makeResidentCalledCount);
|
||||
auto numIsaAllocations = static_cast<int>(module->getKernelImmutableDataVector().size());
|
||||
|
||||
auto expectedMakeResidentCallsCount = numIsaAllocations + 1; // const surface
|
||||
if (module->getTranslationUnit()->programInfo.linkerInput) {
|
||||
expectedMakeResidentCallsCount += numIsaAllocations;
|
||||
}
|
||||
|
||||
EXPECT_EQ(expectedMakeResidentCallsCount, memoryOperationsHandler->makeResidentCalledCount);
|
||||
|
||||
for (auto &ki : module->getKernelImmutableDataVector()) {
|
||||
EXPECT_TRUE(ki->isIsaCopiedToAllocation());
|
||||
|
||||
Reference in New Issue
Block a user