mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
[7/n] Unified Shared Memory.
- Add basic allocation support for shared allocations - Add kernel support for shared allocations. Related-To: NEO-3148 Change-Id: Ie0523acc3a444eef6a5aeb6a56a041280df6a02e Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
57f88ee197
commit
3a75c4fb71
@@ -14,6 +14,7 @@
|
||||
TEST(UnifiedMemoryTests, givenInternalMemoryTypesThenAllHaveOnlyOneBitSet) {
|
||||
EXPECT_EQ(1u, std::bitset<32>(InternalMemoryType::DEVICE_UNIFIED_MEMORY).count());
|
||||
EXPECT_EQ(1u, std::bitset<32>(InternalMemoryType::HOST_UNIFIED_MEMORY).count());
|
||||
EXPECT_EQ(1u, std::bitset<32>(InternalMemoryType::SHARED_UNIFIED_MEMORY).count());
|
||||
EXPECT_EQ(1u, std::bitset<32>(InternalMemoryType::SVM).count());
|
||||
}
|
||||
|
||||
@@ -29,4 +30,8 @@ TEST(UnifiedMemoryTests, givenUnifiedMemoryControlsWhenDedicatedFieldsAreSetThen
|
||||
controls.indirectDeviceAllocationsAllowed = false;
|
||||
|
||||
EXPECT_EQ(InternalMemoryType::HOST_UNIFIED_MEMORY, controls.generateMask());
|
||||
|
||||
controls.indirectHostAllocationsAllowed = false;
|
||||
controls.indirectSharedAllocationsAllowed = true;
|
||||
EXPECT_EQ(InternalMemoryType::SHARED_UNIFIED_MEMORY, controls.generateMask());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user