Skip to content

Commit

Permalink
Update onnxruntime from 1.16.3 to 1.17.0 (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Feb 17, 2024
1 parent d771762 commit 81da0fb
Show file tree
Hide file tree
Showing 25 changed files with 161 additions and 155 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/aarch64-linux-gnu-shared.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,35 +82,43 @@ jobs:
uses: actions/cache@v3
with:
path: toolchain
key: gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu
key: gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz

- name: Download toolchain
if: steps.cache-toolchain.outputs.cache-hit != 'true'
shell: bash
run: |
wget https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz
wget -qq https://huggingface.co/csukuangfj/sherpa-ncnn-toolchains/resolve/main/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
mkdir $GITHUB_WORKSPACE/toolchain
tar xvf ./gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz --strip-components 1 -C $GITHUB_WORKSPACE/toolchain
tar xf ./gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz --strip-components 1 -C $GITHUB_WORKSPACE/toolchain
- name: Set environment variable
if: steps.cache-build-result.outputs.cache-hit != 'true'
shell: bash
run: |
echo "$GITHUB_WORKSPACE/toolchain/bin" >> "$GITHUB_PATH"
echo "$GITHUB_WORKSPACE/bin" >> "$GITHUB_PATH"
ls -lh "$GITHUB_WORKSPACE/toolchain/bin"
echo "CC=aarch64-none-linux-gnu-gcc" >> "$GITHUB_ENV"
echo "CXX=aarch64-none-linux-gnu-g++" >> "$GITHUB_ENV"
- name: Display toolchain info
shell: bash
run: |
export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH
aarch64-linux-gnu-gcc --version
aarch64-none-linux-gnu-gcc --version
- name: Display qemu-aarch64 -h
shell: bash
run: |
export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/aarch64-linux-gnu/libc
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/aarch64-none-linux-gnu/libc
qemu-aarch64 -h
- name: build aarch64-linux-gnu
shell: bash
run: |
export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
Expand All @@ -130,7 +138,7 @@ jobs:
run: |
export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH
export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/aarch64-linux-gnu/libc
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/aarch64-none-linux-gnu/libc
ls -lh ./build-aarch64-linux-gnu/bin
Expand All @@ -141,8 +149,7 @@ jobs:
- name: Copy files
shell: bash
run: |
export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH
aarch64-linux-gnu-strip --version
aarch64-none-linux-gnu-strip --version
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
Expand All @@ -157,7 +164,7 @@ jobs:
ls -lh $dst/bin/
echo "strip"
aarch64-linux-gnu-strip $dst/bin/*
aarch64-none-linux-gnu-strip $dst/bin/*
tree $dst
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/aarch64-linux-gnu-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,16 @@ jobs:
uses: actions/cache@v3
with:
path: toolchain
key: gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz
key: gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz

- name: Download toolchain
if: steps.cache-toolchain.outputs.cache-hit != 'true'
shell: bash
run: |
# wget wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz
wget -qq https://huggingface.co/csukuangfj/sherpa-ncnn-toolchains/resolve/main/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz
wget -qq https://huggingface.co/csukuangfj/sherpa-ncnn-toolchains/resolve/main/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
mkdir $GITHUB_WORKSPACE/toolchain
tar xf ./gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz --strip-components 1 -C $GITHUB_WORKSPACE/toolchain
tar xf ./gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz --strip-components 1 -C $GITHUB_WORKSPACE/toolchain
- name: Display toolchain info
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion build-android-arm64-v8a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fi

echo "ANDROID_NDK: $ANDROID_NDK"
sleep 1
onnxruntime_version=v1.16.3
onnxruntime_version=v1.17.0

if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/arm64-v8a/libonnxruntime.so ]; then
if [ ! -d android-onnxruntime-libs ]; then
Expand Down
2 changes: 1 addition & 1 deletion build-android-armv7-eabi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fi
echo "ANDROID_NDK: $ANDROID_NDK"
sleep 1

onnxruntime_version=v1.16.3
onnxruntime_version=v1.17.0

if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/armeabi-v7a/libonnxruntime.so ]; then
if [ ! -d android-onnxruntime-libs ]; then
Expand Down
2 changes: 1 addition & 1 deletion build-android-x86-64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fi
echo "ANDROID_NDK: $ANDROID_NDK"
sleep 1

onnxruntime_version=v1.16.3
onnxruntime_version=v1.17.0

if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86_64/libonnxruntime.so ]; then
if [ ! -d android-onnxruntime-libs ]; then
Expand Down
2 changes: 1 addition & 1 deletion build-android-x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fi
echo "ANDROID_NDK: $ANDROID_NDK"
sleep 1

onnxruntime_version=v1.16.3
onnxruntime_version=v1.17.0

if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86/libonnxruntime.so ]; then
if [ ! -d android-onnxruntime-libs ]; then
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-aarch64-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.3/onnxruntime-linux-aarch64-static_lib-1.16.3.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-static_lib-1.16.3.zip")
set(onnxruntime_HASH "SHA256=c46dbb2799605684193d8f3c1a4377c3478950ccdb7cc7bf49b914a54cde69ca")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-aarch64-static_lib-1.17.0.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-static_lib-1.17.0.zip")
set(onnxruntime_HASH "SHA256=8be35fa5d4c9cc42075bf90d1a095a44ab6bf4fc7306141aa1169fa49b382cc2")

# 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-aarch64-static_lib-1.16.3.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.3.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.3.zip
/tmp/onnxruntime-linux-aarch64-static_lib-1.16.3.zip
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.16.3.zip
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
/tmp/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-aarch64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-linux-aarch64-1.16.3.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-1.16.3.tgz")
set(onnxruntime_HASH "SHA256=784dbef93b40196aa668d29d78294a81c0d21361d36530b817bb24d87e8730e8")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-aarch64-1.17.0.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-1.17.0.tgz")
set(onnxruntime_HASH "SHA256=ee5069252f549ef94759b6b60bdf10b2dc2cd71d064a7045dd66a052f956a68b")

# 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-aarch64-1.16.3.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-1.16.3.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-1.16.3.tgz
/tmp/onnxruntime-linux-aarch64-1.16.3.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.16.3.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.17.0.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-1.17.0.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-1.17.0.tgz
/tmp/onnxruntime-linux-aarch64-1.17.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.17.0.tgz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-arm-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.3/onnxruntime-linux-arm-static_lib-1.16.3.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-static_lib-1.16.3.zip")
set(onnxruntime_HASH "SHA256=f5808e40f89c151b1b11bb01041d8b011850af5038758875863fc86cf6c1d965")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-arm-static_lib-1.17.0.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-static_lib-1.17.0.zip")
set(onnxruntime_HASH "SHA256=36a30732b2ccebdaabfee6e1e4473ce65d90cab12c6d2136874e847baeaa1571")

# 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-arm-static_lib-1.16.3.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.16.3.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.16.3.zip
/tmp/onnxruntime-linux-arm-static_lib-1.16.3.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.16.3.zip
$ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.17.0.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.17.0.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.17.0.zip
/tmp/onnxruntime-linux-arm-static_lib-1.17.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.17.0.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-arm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.3/onnxruntime-linux-arm-1.16.3.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-1.16.3.zip")
set(onnxruntime_HASH "SHA256=2fa5a10f3f5c188dd42f69306b010bc112cf35c1634a3893535ef5b02a7275c6")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-arm-1.17.0.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-1.17.0.zip")
set(onnxruntime_HASH "SHA256=6bdddba15193336ed26b7fbcc7e487f774cf52c8917899cc5b1d214089e6e855")

# 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-arm-1.16.3.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-1.16.3.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-1.16.3.zip
/tmp/onnxruntime-linux-arm-1.16.3.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.16.3.zip
$ENV{HOME}/Downloads/onnxruntime-linux-arm-1.17.0.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-1.17.0.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-1.17.0.zip
/tmp/onnxruntime-linux-arm-1.17.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.17.0.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-x86_64-gpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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.16.3/onnxruntime-linux-x64-gpu-1.16.3.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-gpu-1.16.3.tgz")
set(onnxruntime_HASH "SHA256=bbdc33367c056029b3ac0c042cbca2236b8f59a3a53b4daf23432ef1d8bf52de")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-x64-gpu-1.17.0.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-gpu-1.17.0.tgz")
set(onnxruntime_HASH "SHA256=27cfa22af7301868b55220f8733361889286b30be0569a8f46abb63e90342180")

# 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.16.3.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.16.3.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.16.3.tgz
/tmp/onnxruntime-linux-x64-gpu-1.16.3.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.16.3.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.17.0.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.17.0.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.17.0.tgz
/tmp/onnxruntime-linux-x64-gpu-1.17.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.17.0.tgz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-x86_64-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.3/onnxruntime-linux-x64-static_lib-1.16.3.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-static_lib-1.16.3.zip")
set(onnxruntime_HASH "SHA256=ebf0f4f34d1720d8df7e0be0bc2553bcb1469c44121acb43c9d972dad9b00607")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-linux-x64-static_lib-1.17.0.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-static_lib-1.17.0.zip")
set(onnxruntime_HASH "SHA256=137a5e5a9195c74452f3b772533545441ef0933a154fa006f2a13da8f956907d")

# 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-static_lib-1.16.3.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.16.3.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.16.3.zip
/tmp/onnxruntime-linux-x64-static_lib-1.16.3.zip
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.16.3.zip
$ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.17.0.zip
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.17.0.zip
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.17.0.zip
/tmp/onnxruntime-linux-x64-static_lib-1.17.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.17.0.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-x86_64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-linux-x64-1.16.3.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-1.16.3.tgz")
set(onnxruntime_HASH "SHA256=b072f989d6315ac0e22dcb4771b083c5156d974a3496ac3504c77f4062eb248e")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-x64-1.17.0.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-1.17.0.tgz")
set(onnxruntime_HASH "SHA256=efc344d54d1969446ff5d3e55b54e205c6579c06333ecf1d34a04215eefae7c6")

# 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-1.16.3.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-1.16.3.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-1.16.3.tgz
/tmp/onnxruntime-linux-x64-1.16.3.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-1.16.3.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-x64-1.17.0.tgz
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-1.17.0.tgz
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-1.17.0.tgz
/tmp/onnxruntime-linux-x64-1.17.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-1.17.0.tgz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-arm64-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS)
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
endif()

set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.3/onnxruntime-osx-arm64-static_lib-1.16.3.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-static_lib-1.16.3.zip")
set(onnxruntime_HASH "SHA256=0481532b262dac3d09845bf11dc8b93c493359947edc449e066f1943b820d789")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-osx-arm64-static_lib-1.17.0.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-static_lib-1.17.0.zip")
set(onnxruntime_HASH "SHA256=07798f7c91164e6870c438a3a1aeae0768b568bcefd71a3416a4c7a42837e31a")

# 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-osx-arm64-static_lib-1.16.3.zip
${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.16.3.zip
${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.16.3.zip
/tmp/onnxruntime-osx-arm64-static_lib-1.16.3.zip
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.17.0.zip
${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.17.0.zip
${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.17.0.zip
/tmp/onnxruntime-osx-arm64-static_lib-1.17.0.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
Loading

0 comments on commit 81da0fb

Please sign in to comment.