refactor: remove not needed code related to vme usage

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2025-07-24 15:24:07 +00:00
committed by Compute-Runtime-Automation
parent cdc7be1518
commit 0a347a2d8b
12 changed files with 3 additions and 228 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2024 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -62,36 +62,3 @@ TEST(RequiresLocalMemoryWindowVA, GivenProgramWithKernelsWhenSomeOfKernelRequire
programInfo.kernelInfos[1]->kernelDescriptor.payloadMappings.implicitArgs.localMemoryStatelessWindowStartAddres = 0U;
EXPECT_TRUE(NEO::requiresLocalMemoryWindowVA(programInfo));
}
TEST(RequiresRebuildWithPatchtokens, givenNoLegacyDebuggerAttachedWhenCheckingForRebuildRequirementThenReturnFalseAndDoNotFallback) {
ZebinTestData::ValidEmptyProgram<> zebin;
auto device = std::unique_ptr<NEO::MockDevice>(NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(nullptr));
std::string options{NEO::CompilerOptions::disableZebin};
bool isBuiltIn = false;
device->getRootDeviceEnvironmentRef().debugger.reset(nullptr);
bool rebuildRequired = isRebuiltToPatchtokensRequired(device.get(), ArrayRef<const uint8_t>::fromAny(zebin.storage.data(), zebin.storage.size()), options, isBuiltIn, false);
EXPECT_FALSE(rebuildRequired);
EXPECT_TRUE(NEO::CompilerOptions::contains(options, NEO::CompilerOptions::disableZebin));
}
TEST(RequiresRebuildWithPatchtokens, givenVmeUsedWhenIsRebuiltToPatchtokensRequiredThenReturnFalse) {
ZebinTestData::ValidEmptyProgram<> zebin;
auto device = std::unique_ptr<NEO::MockDevice>(NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(nullptr));
device->getRootDeviceEnvironmentRef().debugger.reset(nullptr);
std::string options = "";
bool isBuiltIn = false;
{
bool isVmeUsed = false;
bool rebuildRequired = isRebuiltToPatchtokensRequired(device.get(), ArrayRef<const uint8_t>::fromAny(zebin.storage.data(), zebin.storage.size()), options, isBuiltIn, isVmeUsed);
EXPECT_FALSE(rebuildRequired);
EXPECT_FALSE(NEO::CompilerOptions::contains(options, NEO::CompilerOptions::disableZebin));
}
{
bool isVmeUsed = true;
bool rebuildRequired = isRebuiltToPatchtokensRequired(device.get(), ArrayRef<const uint8_t>::fromAny(zebin.storage.data(), zebin.storage.size()), options, isBuiltIn, isVmeUsed);
EXPECT_TRUE(rebuildRequired);
EXPECT_TRUE(NEO::CompilerOptions::contains(options, NEO::CompilerOptions::disableZebin));
}
}