Add installers for rocm-6.3 and rhel-9.5 and update installer script template (#50)
* Add installers for rocm-6.3 and rhel-9.5 * Updated the template "rocprof-sys-install.py.in". Fixed the installer for the "rocm-x.y.z" style tags. --------- Signed-off-by: David Galiffi <David.Galiffi@amd.com>
This commit is contained in:
@@ -7,14 +7,38 @@ if(NOT DEFINED ROCPROFSYS_VERSION)
|
||||
ROCPROFSYS_VERSION "${FULL_VERSION_STRING}")
|
||||
endif()
|
||||
|
||||
find_package(Git)
|
||||
|
||||
if(Git_FOUND AND EXISTS ".git")
|
||||
execute_process(
|
||||
COMMAND ${GIT_EXECUTABLE} describe --tags
|
||||
OUTPUT_VARIABLE ROCPROFSYS_GIT_TAG
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
RESULT_VARIABLE _GIT_DESCRIBE_RESULT
|
||||
ERROR_QUIET)
|
||||
if(NOT _GIT_DESCRIBE_RESULT EQUAL 0)
|
||||
execute_process(
|
||||
COMMAND ${GIT_EXECUTABLE} describe
|
||||
OUTPUT_VARIABLE ROCPROFSYS_GIT_TAG
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
RESULT_VARIABLE _GIT_DESCRIBE_RESULT
|
||||
ERROR_QUIET)
|
||||
endif()
|
||||
else()
|
||||
message(
|
||||
STATUS
|
||||
"Git not found or .git directory not found; using version ${ROCPROFSYS_VERSION}"
|
||||
)
|
||||
set(GIT_DESCRIBE "v${ROCPROFSYS_VERSION}")
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED OUTPUT_DIR)
|
||||
set(OUTPUT_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
endif()
|
||||
|
||||
message(
|
||||
STATUS
|
||||
"Writing ${OUTPUT_DIR}/rocprofiler-systems-install.py for rocprofiler-systems v${ROCPROFSYS_VERSION}"
|
||||
)
|
||||
message(STATUS "Writing ${OUTPUT_DIR}/rocprofiler-systems-install.py.")
|
||||
message(STATUS "rocprofiler-systems version: ${ROCPROFSYS_VERSION}.")
|
||||
message(STATUS "rocprofiler-systems git describe: ${ROCPROFSYS_GIT_TAG}")
|
||||
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/../cmake/Templates/rocprof-sys-install.py.in
|
||||
${OUTPUT_DIR}/rocprofiler-systems-install.py @ONLY)
|
||||
|
||||
Reference in New Issue
Block a user