Files
rocm-systems/catch/unit/p2p/CMakeLists.txt
T
Michael Xie 72450ae7a1 SWDEV-492356 - Install hip-test artifacts into a single folder
Change-Id: Ib2a2c021e2546c0233050f11d3dc84f2ea4ff03d
2024-11-13 18:22:32 -05:00

26 líneas
824 B
CMake

# Common Tests - Test independent of all platforms
# moved hipDeviceGetP2PAttribute.cc from /catch/unit/device to
# /catch/unit/p2p folder and its dependent files.
set(TEST_SRC
hipDeviceGetP2PAttribute.cc
)
# only for AMD
if(HIP_PLATFORM MATCHES "amd")
set(AMD_SRC
hipP2pLinkTypeAndHopFunc.cc
)
set(TEST_SRC ${TEST_SRC} ${AMD_SRC})
endif()
set_source_files_properties(hipDeviceGetP2PAttribute.cc PROPERTIES COMPILE_FLAGS -std=c++17)
add_executable(hipDeviceGetP2PAttribute_exe EXCLUDE_FROM_ALL hipDeviceGetP2PAttribute_exe.cc)
set_property(GLOBAL APPEND PROPERTY G_INSTALL_EXE_TARGETS hipDeviceGetP2PAttribute_exe)
hip_add_exe_to_target(NAME p2pTests
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests)
add_dependencies(build_tests hipDeviceGetP2PAttribute_exe)