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
92c96c3c
Commit
92c96c3c
authored
Nov 20, 2020
by
Ashutosh Mishra
Browse files
Standardizing Package name
Enables standards compliant package naming for debian and rpm
parent
86090f80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
CMakeLists.txt
CMakeLists.txt
+10
-10
No files found.
CMakeLists.txt
View file @
92c96c3c
...
...
@@ -125,10 +125,10 @@ include(utils)
find_package
(
hsa-runtime64
PATHS /opt/rocm
)
if
(
${
hsa-runtime64_FOUND
}
)
message
(
"hsa-runtime64 found @
${
hsa-runtime64_DIR
}
"
)
message
(
"hsa-runtime64 found @
${
hsa-runtime64_DIR
}
"
)
else
()
message
(
"hsa-runtime64 NOT found Resolving to OLD Way"
)
find_path
(
ROCR_HDR hsa.h PATHS
"/opt/rocm"
PATH_SUFFIXES include/hsa REQUIRED
)
message
(
"hsa-runtime64 NOT found Resolving to OLD Way"
)
find_path
(
ROCR_HDR hsa.h PATHS
"/opt/rocm"
PATH_SUFFIXES include/hsa REQUIRED
)
INCLUDE_DIRECTORIES
(
${
ROCR_HDR
}
)
# Search for ROCr library file
find_library
(
ROCR_LIB
${
CORE_RUNTIME_TARGET
}
PATHS
"/opt/rocm"
PATH_SUFFIXES lib lib64 REQUIRED
)
...
...
@@ -171,8 +171,8 @@ 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}"
)
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
...
...
@@ -187,8 +187,8 @@ set(CPACK_PACKAGE_VERSION_PATCH ${BUILD_VERSION_PATCH})
set
(
CPACK_PACKAGE_CONTACT
"TODO <Add a valid email id>"
)
set
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Diagnostic utility tool to measure PCIe bandwidth on ROCm platforms"
)
#Make proper version for appending
#Default Value is 99999, setting it first
#
Make proper version for appending
#
Default Value is 99999, setting it first
set
(
ROCM_VERSION_FOR_PACKAGE
"99999"
)
if
(
DEFINED ENV{ROCM_LIBPATCH_VERSION}
)
set
(
ROCM_VERSION_FOR_PACKAGE $ENV{ROCM_LIBPATCH_VERSION}
)
...
...
@@ -214,15 +214,15 @@ else()
set
(
CPACK_RPM_PACKAGE_RELEASE
"local"
)
endif
()
#Set rpm distro
#
Set rpm distro
if
(
CPACK_RPM_PACKAGE_RELEASE
)
set
(
CPACK_RPM_PACKAGE_RELEASE_DIST ON
)
endif
()
#Prepare final version for the CAPACK use
#
Prepare final version for the CAPACK use
set
(
CPACK_PACKAGE_VERSION
"
${
CPACK_PACKAGE_VERSION_MAJOR
}
.
${
CPACK_PACKAGE_VERSION_MINOR
}
.
${
CPACK_PACKAGE_VERSION_PATCH
}
.
${
ROCM_VERSION_FOR_PACKAGE
}
"
)
#Set the names now using CPACK utility
#
Set the names now using CPACK utility
set
(
CPACK_DEBIAN_FILE_NAME
"DEB-DEFAULT"
)
set
(
CPACK_RPM_FILE_NAME
"RPM-DEFAULT"
)
...
...
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