mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 03:20:47 +08:00
refactor: remove not needed code related to vme usage
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cdc7be1518
commit
0a347a2d8b
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user