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
wangsen
rocm_bandwidth_test
Commits
8c2ce316
Unverified
Commit
8c2ce316
authored
Nov 06, 2019
by
Ramesh Errabolu
Committed by
GitHub
Nov 06, 2019
Browse files
Merge pull request #53 from RadeonOpenCompute/useRpath
Add RPATH flag and rename package name
parents
b9d3e346
7a1a5e9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
CMakeLists.txt
CMakeLists.txt
+7
-1
No files found.
CMakeLists.txt
View file @
8c2ce316
...
...
@@ -104,7 +104,7 @@ elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86")
endif
()
# Specify name of project to build, install and package
set
(
PROJECT_NAME
"rocm
_
bandwidth
_
test"
)
set
(
PROJECT_NAME
"rocm
-
bandwidth
-
test"
)
set
(
TEST_NAME
"
${
PROJECT_NAME
}
"
)
project
(
${
PROJECT_NAME
}
)
...
...
@@ -196,6 +196,12 @@ target_link_libraries(${TEST_NAME} ${ROC_THUNK_NAME})
target_link_libraries
(
${
TEST_NAME
}
${
CORE_RUNTIME_TARGET
}
)
target_link_libraries
(
${
TEST_NAME
}
c stdc++ dl pthread rt
)
# Update linker flags to include RPATH
# Add --enable-new-dtags to generate DT_RUNPATH
if
(
DEFINED ENV{ROCM_RPATH}
)
set
(
CMAKE_EXE_LINKER_FLAGS
"-Wl,--enable-new-dtags -Wl,--rpath,$ENV{ROCM_RPATH}"
)
endif
()
# Add install directives for rocm_bandwidth_test
install
(
TARGETS
${
TEST_NAME
}
RUNTIME DESTINATION bin
)
...
...
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