Revert "refactor: Store AIL in root device environment"

This reverts commit 02ef252b7d.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2023-11-16 19:04:39 +01:00
committed by Compute-Runtime-Automation
parent c68f55e4f6
commit 27000c06cb
14 changed files with 181 additions and 97 deletions

View File

@@ -207,17 +207,6 @@ TEST(RootDeviceEnvironment, givenHardwareInfoAndDebugVariableNodeOrdinalEqualsCc
EXPECT_TRUE(hwInfo->featureTable.flags.ftrRcsNode);
}
TEST(RootDeviceEnvironment, givenEnableAILFlagSetToFalseWhenInitializingAILConfigurationThenSkipInitializingIt) {
DebugManagerStateRestore restorer;
DebugManager.flags.EnableAIL.set(false);
MockExecutionEnvironment executionEnvironment;
auto rootDeviceEnvironment = static_cast<MockRootDeviceEnvironment *>(executionEnvironment.rootDeviceEnvironments[0].get());
ASSERT_EQ(nullptr, rootDeviceEnvironment->ailConfiguration);
rootDeviceEnvironment->initAilConfiguration();
EXPECT_EQ(nullptr, rootDeviceEnvironment->ailConfiguration);
}
TEST(ExecutionEnvironment, givenExecutionEnvironmentWhenInitializeMemoryManagerIsCalledThenLocalMemorySupportedInMemoryManagerHasCorrectValue) {
const HardwareInfo *hwInfo = defaultHwInfo.get();
auto device = std::unique_ptr<Device>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(hwInfo));