22f3d9034b
- Migrate basic Cooperative Groups tests and integrate to catch - Refactor basic Cooperative Groups tests - Rename tiled partition related files and fix minor bug - Add LaunchCooperativeKernal and LaunchCooperativeKernelMultiDevice tests - Refactor hipCGThreadBlockTileType to use common function - Fix updated file not added during merge - Add coalesced_group type tests - Add coalesced_group shuffle_up and shuffle_down tests - Add coalesced_group shuffle tests - test fails - Implement common code for cooperative group tests - Fixed compilation errror in cooperative_groups_common.hh - Implement busy wait device function - Reimplement tests for grid_group APIs - Add tests for grid_group member and non-member APIs - Refactor existing test for grid_group sync testing - Add thread and block dimensions generators - Add check of grid and block dimensions - Modify doxygen comments - Move cpu_grid.h and supporting functions to catch/include - Use warp_size from properties in grid/block dims generators - Fix condition for warp size 32 on AMD - Fix cpu_grid.h for warp function tests - Add missing include into cpu_grid.h - Code cleanup - Fix doxygen comments - Add missing include in utils header
27 lines
1.5 KiB
CMake
27 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
|
|
simple_coalesced_groups.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()
|