Files
rocm-systems/projects/hip-tests/catch/unit/warp/CMakeLists.txt
T
Vladana Stojiljkovic 0c255ac97f SWDEV-453145 - Enable _sync tests on nvidia
* _sync tests that use warp match functions (__match_any_sync and __match_all_sync) were disabled for nvidia because those functions are supported only on devices with compute capability 7.x or higher. In this solution, tests are always build (with specifying appropriate compile flag) and in in the runtime it is decided weather they should be skipped or not.

Change-Id: Ifa9e55f3b47aa3a00027cb986cd6ae46aed45ebd


[ROCm/hip-tests commit: 9893726343]
2024-12-03 13:49:16 -05:00

39 righe
1.3 KiB
CMake

# Common Tests - Test independent of all platforms
set(TEST_SRC
warp_ballot.cc
warp_any.cc
warp_all.cc
hipMatchSyncAllTests.cc
hipMatchSyncAnyTests.cc
hipShflSyncDownTests.cc
hipShflSyncUpTests.cc
hipShflSyncXorTests.cc
hipShflSyncTests.cc
hipVoteSyncTests.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
)
endif()
if(HIP_PLATFORM MATCHES "nvidia")
set_source_files_properties(hipMatchSyncAllTests.cc PROPERTIES COMPILE_FLAGS "-arch=sm_70")
set_source_files_properties(hipMatchSyncAnyTests.cc PROPERTIES COMPILE_FLAGS "-arch=sm_70")
set_source_files_properties(hipShflSyncDownTests.cc PROPERTIES COMPILE_FLAGS "-arch=sm_70")
set_source_files_properties(hipShflSyncUpTests.cc PROPERTIES COMPILE_FLAGS "-arch=sm_70")
set_source_files_properties(hipShflSyncXorTests.cc PROPERTIES COMPILE_FLAGS "-arch=sm_70")
set_source_files_properties(hipShflSyncTests.cc PROPERTIES COMPILE_FLAGS "-arch=sm_70")
set_source_files_properties(hipVoteSyncTests.cc PROPERTIES COMPILE_FLAGS "-arch=sm_70")
endif()
hip_add_exe_to_target(NAME WarpTest
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests)