mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
Use version instead of version-dev for ROCm (#19967)
This commit is contained in:
parent
a4ac727cbb
commit
6bb64683f8
1 changed files with 3 additions and 3 deletions
|
|
@ -325,8 +325,8 @@ if (onnxruntime_USE_ROCM)
|
|||
# replicate strategy used by pytorch to get ROCM_VERSION
|
||||
# https://github.com/pytorch/pytorch/blob/5c5b71b6eebae76d744261715231093e62f0d090/cmake/public/LoadHIP.cmake
|
||||
# with modification
|
||||
if (EXISTS "${onnxruntime_ROCM_HOME}/.info/version-dev")
|
||||
file(READ "${onnxruntime_ROCM_HOME}/.info/version-dev" ROCM_VERSION_DEV_RAW)
|
||||
if (EXISTS "${onnxruntime_ROCM_HOME}/.info/version")
|
||||
file(READ "${onnxruntime_ROCM_HOME}/.info/version" ROCM_VERSION_DEV_RAW)
|
||||
string(REGEX MATCH "^([0-9]+)\.([0-9]+)\.([0-9]+)-.*$" ROCM_VERSION_MATCH ${ROCM_VERSION_DEV_RAW})
|
||||
elseif (EXISTS "${onnxruntime_ROCM_HOME}/include/rocm_version.h")
|
||||
file(READ "${onnxruntime_ROCM_HOME}/include/rocm_version.h" ROCM_VERSION_H_RAW)
|
||||
|
|
@ -345,7 +345,7 @@ if (onnxruntime_USE_ROCM)
|
|||
else()
|
||||
message(FATAL_ERROR "Cannot determine ROCm version string")
|
||||
endif()
|
||||
message("\n***** ROCm version from ${onnxruntime_ROCM_HOME}/.info/version-dev ****\n")
|
||||
message("\n***** ROCm version from ${onnxruntime_ROCM_HOME}/.info/version ****\n")
|
||||
message("ROCM_VERSION_DEV: ${ROCM_VERSION_DEV}")
|
||||
message("ROCM_VERSION_DEV_MAJOR: ${ROCM_VERSION_DEV_MAJOR}")
|
||||
message("ROCM_VERSION_DEV_MINOR: ${ROCM_VERSION_DEV_MINOR}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue