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
f1fcdd6d
Commit
f1fcdd6d
authored
Mar 13, 2023
by
PedramAlizadeh
Browse files
TransferBench Package
parent
a438ef95
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 @
f1fcdd6d
...
@@ -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
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-pthread"
)
project
(
TransferBench VERSION 1.0 LANGUAGES CXX
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-O3 -L
${
ROCM_PATH
}
/hsa/lib"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-O3 -L
${
ROCM_PATH
}
/hsa/lib"
)
include_directories
(
${
ROCM_PATH
}
/hsa/include
)
include_directories
(
${
ROCM_PATH
}
/hsa/include
)
link_libraries
(
numa hsa-runtime64
)
link_libraries
(
numa hsa-runtime64
)
...
@@ -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