Skip to content

Commit f1fcdd6

Browse files
TransferBench Package
1 parent a438ef9 commit f1fcdd6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

CMakeLists.txt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,27 @@ else()
55
set(ROCM_PATH "/opt/rocm" CACHE STRING "ROCm install directory")
66
endif()
77
cmake_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)
910
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -L${ROCM_PATH}/hsa/lib")
1011
include_directories(${ROCM_PATH}/hsa/include)
1112
link_libraries(numa hsa-runtime64)
1213
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ..)
1314
add_executable(TransferBench src/TransferBench.cpp)
1415
target_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+
)

0 commit comments

Comments
 (0)