Revert "performance: device usm sets localOnly...

Required"

This reverts commit a479afdbc8.

Related-To: NEO-12879

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2024-10-07 10:26:14 +00:00
committed by Compute-Runtime-Automation
parent 9a280892f8
commit 3685852ce0
4 changed files with 2 additions and 27 deletions

View File

@@ -76,17 +76,6 @@ HWTEST_F(MemoryManagerGetAlloctionDataTests, givenCommandBufferAllocationTypeWhe
EXPECT_TRUE(allocData.flags.useSystemMemory);
}
HWTEST_F(MemoryManagerGetAlloctionDataTests, givenUsmDeviceAllocationWhenGetAllocationDataIsCalledThenLocalOnlyRequiredIsSet) {
AllocationData allocData;
AllocationProperties properties(mockRootDeviceIndex, true, 10, AllocationType::buffer, false, mockDeviceBitfield);
properties.flags.isUSMDeviceAllocation = true;
MockMemoryManager mockMemoryManager;
mockMemoryManager.getAllocationData(allocData, properties, nullptr, mockMemoryManager.createStorageInfoFromProperties(properties));
EXPECT_TRUE(allocData.storageInfo.localOnlyRequired);
}
TEST_F(MemoryManagerGetAlloctionDataTests, givenAllocateMemoryFlagTrueWhenHostPtrIsNotNullThenAllocationDataHasHostPtrNulled) {
AllocationData allocData;
char memory = 0;

View File

@@ -392,16 +392,6 @@ TEST_F(MultiDeviceStorageInfoTest, whenCreatingStorageInfoForSvmGpuThenLocalOnly
EXPECT_TRUE(storageInfo.localOnlyRequired);
}
TEST_F(MultiDeviceStorageInfoTest, whenCreatingStorageInfoForDeviceUSMAllocationThenLocalOnlyRequiredIsSet) {
AllocationProperties properties{mockRootDeviceIndex, false, numDevices * MemoryConstants::pageSize64k, AllocationType::buffer, false, singleTileMask};
properties.flags.isUSMDeviceAllocation = true;
auto releaseHelper = std::make_unique<MockReleaseHelper>();
releaseHelper->isLocalOnlyAllowedResult = false;
memoryManager->executionEnvironment.rootDeviceEnvironments[properties.rootDeviceIndex]->releaseHelper.reset(releaseHelper.release());
auto storageInfo = memoryManager->createStorageInfoFromProperties(properties);
EXPECT_TRUE(storageInfo.localOnlyRequired);
}
TEST_F(MultiDeviceStorageInfoTest, givenReleaseWhichDoesNotAllowLocalOnlyWhenCreatingStorageInfoForSvmGpuThenLocalOnlyFlagIsNotRequired) {
AllocationProperties properties{mockRootDeviceIndex, false, numDevices * MemoryConstants::pageSize64k, AllocationType::svmGpu, false, singleTileMask};
auto releaseHelper = std::make_unique<MockReleaseHelper>();