ae8090bde8
Change-Id: I7b9df6a3d656e0303e357e2610da9303e93f5600
29 lines
1.5 KiB
CMake
29 lines
1.5 KiB
CMake
# Common Tests - Test independent of all platforms
|
|
set(TEST_SRC
|
|
hipCGThreadBlockType.cc
|
|
hipCGThreadBlockTypeViaBaseType.cc
|
|
hipCGThreadBlockTypeViaPublicApi.cc
|
|
hipCGMultiGridGroupType.cc
|
|
hipCGMultiGridGroupTypeViaBaseType.cc
|
|
hipCGMultiGridGroupTypeViaPublicApi.cc
|
|
grid_group.cc
|
|
coalesced_groups_shfl_down.cc
|
|
coalesced_groups_shfl_up.cc
|
|
hipCGTiledPartition.cc
|
|
hipCGCoalescedGroups.cc
|
|
coalesced_tiled_groups_metagrp.cc
|
|
)
|
|
if(HIP_PLATFORM STREQUAL "nvidia")
|
|
set_source_files_properties(hipCGMultiGridGroupType.cc PROPERTIES COMPILE_FLAGS "-rdc=true -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_80,code=sm_80")
|
|
set_source_files_properties(hipCGMultiGridGroupTypeViaBaseType.cc PROPERTIES COMPILE_FLAGS "-D_CG_ABI_EXPERIMENTAL -rdc=true -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_80,code=sm_80")
|
|
set_source_files_properties(hipCGMultiGridGroupTypeViaPublicApi.cc PROPERTIES COMPILE_FLAGS "-rdc=true -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_80,code=sm_80")
|
|
hip_add_exe_to_target(NAME coopGrpTest
|
|
TEST_SRC ${TEST_SRC}
|
|
TEST_TARGET_NAME build_tests
|
|
LINKER_LIBS "-rdc=true -gencode arch=compute_60,code=sm_60 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_80,code=sm_80")
|
|
else()
|
|
hip_add_exe_to_target(NAME coopGrpTest
|
|
TEST_SRC ${TEST_SRC}
|
|
TEST_TARGET_NAME build_tests)
|
|
endif()
|