mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Fix device allocation cache
Do not use aligned size when storing allocation Trim allocation cache before deleting devices Related-To: NEO-6893 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cd0c97bdc5
commit
2d949a9f3d
@@ -82,8 +82,11 @@ TEST(SvmDeviceAllocationCacheTest, givenAllocationsWithDifferentSizesWhenAllocat
|
||||
auto testDataset = std::vector<SvmDeviceAllocationCacheSimpleTestDataType>(
|
||||
{
|
||||
{(allocationSizeBasis << 0), nullptr},
|
||||
{(allocationSizeBasis << 0) + 1, nullptr},
|
||||
{(allocationSizeBasis << 1), nullptr},
|
||||
{(allocationSizeBasis << 1) + 1, nullptr},
|
||||
{(allocationSizeBasis << 2), nullptr},
|
||||
{(allocationSizeBasis << 2) + 1, nullptr},
|
||||
});
|
||||
|
||||
SVMAllocsManager::UnifiedMemoryProperties unifiedMemoryProperties(InternalMemoryType::DEVICE_UNIFIED_MEMORY, rootDeviceIndices, deviceBitfields);
|
||||
|
||||
Reference in New Issue
Block a user