EXSWHTEC-9 - Implement additional tests for hipIpcCloseMemHandle (#2881)

- Verify that memory stays mapped when reference count is non zero
- Verify that memory stays mapped if handle is closed in a second process
- Verify that attempting to close handle in the process that created it causes an error
- Correct header includes.
- Add additional pointer check to reference counting test.
- Disable Unit_hipIpcCloseMemHandle_Negative_Close_In_Originating_Process test for AMD.

[ROCm/hip-tests commit: 86fa9725c4]
This commit is contained in:
Mirza Halilčević
2022-11-04 14:56:53 +01:00
committed by GitHub
parent 03e871aea5
commit 47050658dc
4 changed files with 100 additions and 2 deletions
@@ -5,6 +5,7 @@
"Unit_hipMallocManaged_OverSubscription",
"Unit_hipDeviceGetCacheConfig_Positive_Basic",
"Unit_hipDeviceGetCacheConfig_Positive_Threaded",
"Unit_hipGetDeviceFlags_Positive_Context"
"Unit_hipGetDeviceFlags_Positive_Context",
"Unit_hipIpcCloseMemHandle_Negative_Close_In_Originating_Process"
]
}
@@ -98,6 +98,7 @@
"Unit_hipStreamValue_Wait64_Blocking_NoMask_Eq",
"Unit_hipStreamValue_Wait64_Blocking_NoMask_And",
"Unit_hipStreamValue_Wait64_Blocking_NoMask_Nor",
"Unit_hipGetDeviceFlags_Positive_Context"
"Unit_hipGetDeviceFlags_Positive_Context",
"Unit_hipIpcCloseMemHandle_Negative_Close_In_Originating_Process"
]
}