Support onnxruntime 1.18.0 (#906)

This commit is contained in:
Fangjun Kuang
2024-07-10 17:05:26 +08:00
committed by GitHub
parent 9e446b8501
commit dd0ff2ca06
107 changed files with 644 additions and 601 deletions

View File

@@ -18,19 +18,19 @@ if(NOT SHERPA_ONNX_ENABLE_GPU)
message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}")
endif()
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-gpu-1.17.1.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-gpu-1.17.1.tgz")
set(onnxruntime_HASH "SHA256=613c53745ea4960ed368f6b3ab673558bb8561c84a8fa781b4ea7fb4a4340be4")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-linux-x64-gpu-1.18.0.tgz")
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-linux-x64-gpu-1.18.0.tgz")
set(onnxruntime_HASH "SHA256=e49980108c0b9dd718c14fa2e6ba3cd90b9ff8e9bde8ebac0a2f1aacdc0603ca")
# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.17.1.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.17.1.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.17.1.tgz
/tmp/onnxruntime-linux-x64-gpu-1.17.1.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.17.1.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.18.0.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.18.0.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.18.0.tgz
/tmp/onnxruntime-linux-x64-gpu-1.18.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.18.0.tgz
)
foreach(f IN LISTS possible_file_locations)