74a6e407e7
Change-Id: Id22dfb4ab2ee8171242fbf6a10886ff3e4abc926
23 lines
1.4 KiB
CMake
23 lines
1.4 KiB
CMake
# Common Tests - Test independent of all platforms
|
|
set(TEST_SRC
|
|
hipCGThreadBlockType.cc
|
|
hipCGThreadBlockTypeViaBaseType.cc
|
|
hipCGThreadBlockTypeViaPublicApi.cc
|
|
hipCGMultiGridGroupType.cc
|
|
hipCGMultiGridGroupTypeViaBaseType.cc
|
|
hipCGMultiGridGroupTypeViaPublicApi.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()
|