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
86090f80
Commit
86090f80
authored
Nov 20, 2020
by
Ashutosh Mishra
Browse files
Standardizing Package name
Enables standards compliant package naming for debian and rpm
parent
abe3c4e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
CMakeLists.txt
CMakeLists.txt
+4
-5
No files found.
CMakeLists.txt
View file @
86090f80
cmake_minimum_required
(
VERSION 3.6.3
)
#
# Setup build environment
#
...
...
@@ -166,14 +165,14 @@ add_executable(${TEST_NAME} ${Src})
if
(
${
hsa-runtime64_FOUND
}
)
target_link_libraries
(
${
TEST_NAME
}
PRIVATE hsa-runtime64::hsa-runtime64
)
else
()
target_link_libraries
(
${
TEST_NAME
}
PRIVATE
${
ROCR_LIB
}
${
ROCT_LIB
}
)
target_link_libraries
(
${
TEST_NAME
}
PRIVATE
${
ROCR_LIB
}
${
ROCT_LIB
}
)
endif
()
target_link_libraries
(
${
TEST_NAME
}
PRIVATE 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}"
)
set
(
CMAKE_EXE_LINKER_FLAGS
"-Wl,--enable-new-dtags -Wl,--rpath,$ENV{ROCM_RPATH}"
)
endif
()
# Add install directives for rocm_bandwidth_test
...
...
@@ -196,7 +195,7 @@ if(DEFINED ENV{ROCM_LIBPATCH_VERSION})
endif
()
# Debian package specific variables
set
(
CPACK_DEBIAN_PACKAGE_DEPENDS
"libstdc++6, hsa-rocr-dev"
)
set
(
CPACK_DEBIAN_PACKAGE_DEPENDS
"libstdc++6, hsa-rocr-dev"
)
set
(
CPACK_DEBIAN_PACKAGE_HOMEPAGE
"https://github.com/RadeonOpenCompute/rocm_bandwidth_test"
)
if
(
DEFINED ENV{CPACK_DEBIAN_PACKAGE_RELEASE}
)
set
(
CPACK_DEBIAN_PACKAGE_RELEASE $ENV{CPACK_DEBIAN_PACKAGE_RELEASE}
)
...
...
@@ -205,7 +204,7 @@ else()
endif
()
# RPM package specific variables
set
(
CPACK_RPM_PACKAGE_DEPENDS
"libstdc++6, hsa-rocr-dev"
)
set
(
CPACK_RPM_PACKAGE_DEPENDS
"libstdc++6, hsa-rocr-dev"
)
if
(
DEFINED CPACK_PACKAGING_INSTALL_PREFIX
)
set
(
CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
"
${
CPACK_PACKAGING_INSTALL_PREFIX
}
${
CPACK_PACKAGING_INSTALL_PREFIX
}
/bin"
)
endif
()
...
...
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