mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 03:01:20 +08:00
ULT renaming: Unified Memory Manager tests
Related-To: NEO-2236 Change-Id: Iebc70e8b66875f38bc2ffb5e65b540e1b51325cc Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
e1cfa1e5b7
commit
4324b0178a
@@ -377,6 +377,7 @@ TEST_F(SVMMemoryAllocatorTest, givenSharedAllocationsDebugFlagWhenDeviceMemoryIs
|
|||||||
|
|
||||||
svmManager->freeSVMAlloc(ptr);
|
svmManager->freeSVMAlloc(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(SvmAllocationPropertiesTests, givenDifferentMemFlagsWhenGettingSvmAllocationPropertiesThenPropertiesAreCorrectlySet) {
|
TEST(SvmAllocationPropertiesTests, givenDifferentMemFlagsWhenGettingSvmAllocationPropertiesThenPropertiesAreCorrectlySet) {
|
||||||
SVMAllocsManager::SvmAllocationProperties allocationProperties = MemObjHelper::getSvmAllocationProperties(0);
|
SVMAllocsManager::SvmAllocationProperties allocationProperties = MemObjHelper::getSvmAllocationProperties(0);
|
||||||
EXPECT_FALSE(allocationProperties.coherent);
|
EXPECT_FALSE(allocationProperties.coherent);
|
||||||
@@ -614,7 +615,7 @@ TEST_F(ShareableUnifiedMemoryManagerPropertiesTest, givenShareableUnifiedPropert
|
|||||||
svmManager->freeSVMAlloc(ptr);
|
svmManager->freeSVMAlloc(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(UnfiedSharedMemoryTransferCalls, givenHostUSMllocationWhenPointerIsUsedForTransferCallsThenUSMAllocationIsReused) {
|
TEST(UnfiedSharedMemoryTransferCalls, givenHostUsmAllocationWhenPointerIsUsedForTransferCallsThenUSMAllocationIsReused) {
|
||||||
MockContext mockContext;
|
MockContext mockContext;
|
||||||
cl_context clContext = &mockContext;
|
cl_context clContext = &mockContext;
|
||||||
|
|
||||||
@@ -653,6 +654,7 @@ TEST(UnfiedSharedMemoryTransferCalls, givenHostUSMllocationWhenPointerIsUsedForT
|
|||||||
ASSERT_EQ(CL_SUCCESS, status);
|
ASSERT_EQ(CL_SUCCESS, status);
|
||||||
clReleaseCommandQueue(commandQueue);
|
clReleaseCommandQueue(commandQueue);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(UnfiedSharedMemoryTransferCalls, givenDeviceUsmAllocationWhenPtrIsUsedForTransferCallsThenUsmAllocationIsReused) {
|
TEST(UnfiedSharedMemoryTransferCalls, givenDeviceUsmAllocationWhenPtrIsUsedForTransferCallsThenUsmAllocationIsReused) {
|
||||||
MockContext mockContext;
|
MockContext mockContext;
|
||||||
cl_context clContext = &mockContext;
|
cl_context clContext = &mockContext;
|
||||||
@@ -806,7 +808,7 @@ TEST(UnfiedSharedMemoryTransferCalls, givenHostAllocationThatIsSmallerThenTransf
|
|||||||
clReleaseCommandQueue(commandQueue);
|
clReleaseCommandQueue(commandQueue);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(UnfiedSharedMemoryTransferCalls, givenSharedUSMllocationWithoutLocalMemoryWhenPointerIsUsedAsTranfserParameterThenUSMAllocationIsReused) {
|
TEST(UnfiedSharedMemoryTransferCalls, givenSharedUsmAllocationWithoutLocalMemoryWhenPointerIsUsedAsTranfserParameterThenUSMAllocationIsReused) {
|
||||||
DebugManagerStateRestore restore;
|
DebugManagerStateRestore restore;
|
||||||
DebugManager.flags.EnableLocalMemory.set(0);
|
DebugManager.flags.EnableLocalMemory.set(0);
|
||||||
|
|
||||||
@@ -848,7 +850,7 @@ TEST(UnfiedSharedMemoryTransferCalls, givenSharedUSMllocationWithoutLocalMemoryW
|
|||||||
clReleaseCommandQueue(commandQueue);
|
clReleaseCommandQueue(commandQueue);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(UnfiedSharedMemoryTransferCalls, givenSharedUSMllocationWithLocalMemoryWhenPointerIsUsedAsTransferParameterThenUSMAllocationIsReused) {
|
TEST(UnfiedSharedMemoryTransferCalls, givenSharedUsmAllocationWithLocalMemoryWhenPointerIsUsedAsTransferParameterThenUSMAllocationIsReused) {
|
||||||
DebugManagerStateRestore restore;
|
DebugManagerStateRestore restore;
|
||||||
DebugManager.flags.EnableLocalMemory.set(1);
|
DebugManager.flags.EnableLocalMemory.set(1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user