Files
rocm-systems/catch/unit/warp/CMakeLists.txt
T
Sameer Sahasrabuddhe 53f0a9bd01 SWDEV-453422: introduce warp sync tests
The following builtins are tested:

  - __all_sync, __any_sync, __ballot_sync and __activemask
  - __match_any_sync and __match_all_sync
  - __shfl_sync, __shfl_up_sync, __shfl_down_sync, and __shfl_xor_sync

The tests for shfl (all variants) were manually validated on a CUDA setup.

NOTE:

  - Unit_hipVoteSync_All temporarily disabled on Windows (SWDEV-452308).
  - All new tests temporarily disabled on CUDA (SWDEV-453145).

Change-Id: I84b205a88aa24219d199c760793e2f19f0cf8f13
2024-05-03 08:58:23 -04:00

32 lines
816 B
CMake

# Common Tests - Test independent of all platforms
set(TEST_SRC
warp_ballot.cc
warp_any.cc
warp_all.cc
)
if(HIP_PLATFORM MATCHES "amd")
set(TEST_SRC ${TEST_SRC}
warp_shfl.cc
warp_shfl_xor.cc
warp_shfl_up.cc
warp_shfl_down.cc
hipShflUpDownTest.cc
hipShflTests.cc
# FIXME: The tests for sync intrinsics are temporarily disabled on CUDA
# because they depend on __match_any_sync, which is not available on older
# NVIDIA devices. (SWDEV-453145)
hipMatchSyncAllTests.cc
hipMatchSyncAnyTests.cc
hipShflSyncDownTests.cc
hipShflSyncUpTests.cc
hipShflSyncXorTests.cc
hipShflSyncTests.cc
hipVoteSyncTests.cc
)
endif()
hip_add_exe_to_target(NAME WarpTest
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests)