Files
systems-assistant[bot] f55dda2082 SWDEV-543340 - Added Unit_hipEventIpc_shm_cleanup test (#548)
The test verifies that all shared memory objects for
IPC events used internally by HIP are properly cleaned
up after use and do not leave persistent files in /dev/shm.

Co-authored-by: Ioannis Assiouras <Ioannis.Assiouras@amd.com>
2025-11-13 18:21:12 +00:00

31 lines
763 B
CMake

# Common Tests - Test independent of all platforms
set(TEST_SRC
Unit_hipEvent_Negative.cc
Unit_hipEvent.cc
Unit_hipEventElapsedTime.cc
Unit_hipEventRecord.cc
Unit_hipEventIpc.cc
hipEventDestroy.cc
hipEventCreate.cc
hipEventCreateWithFlags.cc
hipEventSynchronize.cc
Unit_hipEventMGpuMThreads.cc
)
# The test used wait mechanism and doesnt play well with all arch of nvidia
if(HIP_PLATFORM MATCHES "amd")
set(AMD_SRC
Unit_hipEventQuery.cc
)
if(UNIX)
set(AMD_SRC
${AMD_SRC}
Unit_hipEventIpc_shm_cleanup.cc)
endif()
set(TEST_SRC ${TEST_SRC} ${AMD_SRC})
endif()
hip_add_exe_to_target(NAME EventTest
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests)