Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
one
TransferBench
Commits
e3781d73
Unverified
Commit
e3781d73
authored
Mar 20, 2023
by
Pedram Alizadeh
Committed by
GitHub
Mar 20, 2023
Browse files
Merge pull request #12 from PedramAlizadeh/packaging
TransferBench Package
parents
068c5ce1
5b366fa2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
CMakeLists.txt
CMakeLists.txt
+17
-1
No files found.
CMakeLists.txt
View file @
e3781d73
...
@@ -5,7 +5,8 @@ else()
...
@@ -5,7 +5,8 @@ else()
set
(
ROCM_PATH
"/opt/rocm"
CACHE STRING
"ROCm install directory"
)
set
(
ROCM_PATH
"/opt/rocm"
CACHE STRING
"ROCm install directory"
)
endif
()
endif
()
cmake_minimum_required
(
VERSION 3.5
)
cmake_minimum_required
(
VERSION 3.5
)
project
(
TransferBench CXX
)
project
(
TransferBench VERSION 1.0 LANGUAGES CXX
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-O3 -L
${
ROCM_PATH
}
/lib"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-O3 -L
${
ROCM_PATH
}
/lib"
)
include_directories
(
${
ROCM_PATH
}
/include
)
include_directories
(
${
ROCM_PATH
}
/include
)
link_libraries
(
numa hsa-runtime64 pthread
)
link_libraries
(
numa hsa-runtime64 pthread
)
...
@@ -13,3 +14,18 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ..)
...
@@ -13,3 +14,18 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ..)
add_executable
(
TransferBench src/TransferBench.cpp
)
add_executable
(
TransferBench src/TransferBench.cpp
)
target_include_directories
(
TransferBench PRIVATE src/include
)
target_include_directories
(
TransferBench PRIVATE src/include
)
find_package
(
ROCM 0.8 REQUIRED PATHS
${
ROCM_PATH
}
)
include
(
ROCMInstallTargets
)
include
(
ROCMCreatePackage
)
set
(
ROCMCHECKS_WARN_TOOLCHAIN_VAR OFF
)
set
(
PACKAGE_NAME TB
)
set
(
LIBRARY_NAME TransferBench
)
rocm_install
(
TARGETS TransferBench
)
rocm_create_package
(
NAME
${
LIBRARY_NAME
}
DESCRIPTION
"TransferBench package"
MAINTAINER
"RCCL Team <gilbert.lee@amd.com>"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment