File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 55 set (ROCM_PATH "/opt/rocm" CACHE STRING "ROCm install directory" )
66endif ()
77cmake_minimum_required (VERSION 3.5)
8- project (TransferBench CXX)
8+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread" )
9+ project (TransferBench VERSION 1.0 LANGUAGES CXX)
910set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -L${ROCM_PATH} /hsa/lib" )
1011include_directories (${ROCM_PATH} /hsa/include )
1112link_libraries (numa hsa-runtime64)
1213set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ..)
1314add_executable (TransferBench src/TransferBench.cpp)
1415target_include_directories (TransferBench PRIVATE src/include )
1516
17+ find_package (ROCM 0.8 REQUIRED PATHS ${ROCM_PATH} )
18+ include (ROCMInstallTargets)
19+ include (ROCMCreatePackage)
20+ set (ROCMCHECKS_WARN_TOOLCHAIN_VAR OFF )
21+
22+ set (PACKAGE_NAME TB)
23+ set (LIBRARY_NAME TransferBench)
24+
25+ rocm_install(TARGETS TransferBench)
26+
27+ rocm_create_package(
28+ NAME ${LIBRARY_NAME}
29+ DESCRIPTION "TransferBench package"
30+ MAINTAINER
"RCCL Team <[email protected] >" 31+ )
You can’t perform that action at this time.
0 commit comments