Skip to content

Commit 77998c5

Browse files
authored
Update onnxruntime from 1.16.3 to 1.17.0 (k2-fsa#581)
1 parent 30f4fbe commit 77998c5

25 files changed

+161
-155
lines changed

.github/workflows/aarch64-linux-gnu-shared.yaml

+19-12
Original file line numberDiff line numberDiff line change
@@ -82,35 +82,43 @@ jobs:
8282
uses: actions/cache@v3
8383
with:
8484
path: toolchain
85-
key: gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu
85+
key: gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
8686

8787
- name: Download toolchain
8888
if: steps.cache-toolchain.outputs.cache-hit != 'true'
8989
shell: bash
9090
run: |
91-
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
91+
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
9292
9393
mkdir $GITHUB_WORKSPACE/toolchain
94-
tar xvf ./gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz --strip-components 1 -C $GITHUB_WORKSPACE/toolchain
94+
tar xf ./gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz --strip-components 1 -C $GITHUB_WORKSPACE/toolchain
95+
96+
- name: Set environment variable
97+
if: steps.cache-build-result.outputs.cache-hit != 'true'
98+
shell: bash
99+
run: |
100+
echo "$GITHUB_WORKSPACE/toolchain/bin" >> "$GITHUB_PATH"
101+
echo "$GITHUB_WORKSPACE/bin" >> "$GITHUB_PATH"
102+
ls -lh "$GITHUB_WORKSPACE/toolchain/bin"
103+
104+
echo "CC=aarch64-none-linux-gnu-gcc" >> "$GITHUB_ENV"
105+
echo "CXX=aarch64-none-linux-gnu-g++" >> "$GITHUB_ENV"
95106
96107
- name: Display toolchain info
97108
shell: bash
98109
run: |
99-
export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH
100-
aarch64-linux-gnu-gcc --version
110+
aarch64-none-linux-gnu-gcc --version
101111
102112
- name: Display qemu-aarch64 -h
103113
shell: bash
104114
run: |
105115
export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
106-
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/aarch64-linux-gnu/libc
116+
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/aarch64-none-linux-gnu/libc
107117
qemu-aarch64 -h
108118
109119
- name: build aarch64-linux-gnu
110120
shell: bash
111121
run: |
112-
export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH
113-
114122
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
115123
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
116124
@@ -130,7 +138,7 @@ jobs:
130138
run: |
131139
export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH
132140
export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
133-
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/aarch64-linux-gnu/libc
141+
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/aarch64-none-linux-gnu/libc
134142
135143
ls -lh ./build-aarch64-linux-gnu/bin
136144
@@ -141,8 +149,7 @@ jobs:
141149
- name: Copy files
142150
shell: bash
143151
run: |
144-
export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH
145-
aarch64-linux-gnu-strip --version
152+
aarch64-none-linux-gnu-strip --version
146153
147154
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
148155
@@ -157,7 +164,7 @@ jobs:
157164
158165
ls -lh $dst/bin/
159166
echo "strip"
160-
aarch64-linux-gnu-strip $dst/bin/*
167+
aarch64-none-linux-gnu-strip $dst/bin/*
161168
162169
tree $dst
163170

.github/workflows/aarch64-linux-gnu-static.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,16 @@ jobs:
8282
uses: actions/cache@v3
8383
with:
8484
path: toolchain
85-
key: gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz
85+
key: gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz
8686

8787
- name: Download toolchain
8888
if: steps.cache-toolchain.outputs.cache-hit != 'true'
8989
shell: bash
9090
run: |
91-
# 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
92-
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
91+
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
9392
9493
mkdir $GITHUB_WORKSPACE/toolchain
95-
tar xf ./gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz --strip-components 1 -C $GITHUB_WORKSPACE/toolchain
94+
tar xf ./gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz --strip-components 1 -C $GITHUB_WORKSPACE/toolchain
9695
9796
- name: Display toolchain info
9897
shell: bash

build-android-arm64-v8a.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fi
4242

4343
echo "ANDROID_NDK: $ANDROID_NDK"
4444
sleep 1
45-
onnxruntime_version=v1.16.3
45+
onnxruntime_version=v1.17.0
4646

4747
if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/arm64-v8a/libonnxruntime.so ]; then
4848
if [ ! -d android-onnxruntime-libs ]; then

build-android-armv7-eabi.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fi
4343
echo "ANDROID_NDK: $ANDROID_NDK"
4444
sleep 1
4545

46-
onnxruntime_version=v1.16.3
46+
onnxruntime_version=v1.17.0
4747

4848
if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/armeabi-v7a/libonnxruntime.so ]; then
4949
if [ ! -d android-onnxruntime-libs ]; then

build-android-x86-64.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fi
4343
echo "ANDROID_NDK: $ANDROID_NDK"
4444
sleep 1
4545

46-
onnxruntime_version=v1.16.3
46+
onnxruntime_version=v1.17.0
4747

4848
if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86_64/libonnxruntime.so ]; then
4949
if [ ! -d android-onnxruntime-libs ]; then

build-android-x86.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fi
4343
echo "ANDROID_NDK: $ANDROID_NDK"
4444
sleep 1
4545

46-
onnxruntime_version=v1.16.3
46+
onnxruntime_version=v1.17.0
4747

4848
if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86/libonnxruntime.so ]; then
4949
if [ ! -d android-onnxruntime-libs ]; then

cmake/onnxruntime-linux-aarch64-static.cmake

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
1414
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
1515
endif()
1616

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

2121
# If you don't have access to the Internet,
2222
# please download onnxruntime to one of the following locations.
2323
# You can add more if you want.
2424
set(possible_file_locations
25-
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.16.3.zip
26-
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.3.zip
27-
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.3.zip
28-
/tmp/onnxruntime-linux-aarch64-static_lib-1.16.3.zip
29-
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.16.3.zip
25+
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
26+
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
27+
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
28+
/tmp/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
29+
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.17.0.zip
3030
)
3131

3232
foreach(f IN LISTS possible_file_locations)

cmake/onnxruntime-linux-aarch64.cmake

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
1414
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
1515
endif()
1616

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

2121
# If you don't have access to the Internet,
2222
# please download onnxruntime to one of the following locations.
2323
# You can add more if you want.
2424
set(possible_file_locations
25-
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.16.3.tgz
26-
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-1.16.3.tgz
27-
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-1.16.3.tgz
28-
/tmp/onnxruntime-linux-aarch64-1.16.3.tgz
29-
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.16.3.tgz
25+
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.17.0.tgz
26+
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-1.17.0.tgz
27+
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-1.17.0.tgz
28+
/tmp/onnxruntime-linux-aarch64-1.17.0.tgz
29+
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.17.0.tgz
3030
)
3131

3232
foreach(f IN LISTS possible_file_locations)

cmake/onnxruntime-linux-arm-static.cmake

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
1414
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
1515
endif()
1616

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

2121
# If you don't have access to the Internet,
2222
# please download onnxruntime to one of the following locations.
2323
# You can add more if you want.
2424
set(possible_file_locations
25-
$ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.16.3.zip
26-
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.16.3.zip
27-
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.16.3.zip
28-
/tmp/onnxruntime-linux-arm-static_lib-1.16.3.zip
29-
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.16.3.zip
25+
$ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.17.0.zip
26+
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.17.0.zip
27+
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.17.0.zip
28+
/tmp/onnxruntime-linux-arm-static_lib-1.17.0.zip
29+
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.17.0.zip
3030
)
3131

3232
foreach(f IN LISTS possible_file_locations)

cmake/onnxruntime-linux-arm.cmake

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
1414
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
1515
endif()
1616

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

2121
# If you don't have access to the Internet,
2222
# please download onnxruntime to one of the following locations.
2323
# You can add more if you want.
2424
set(possible_file_locations
25-
$ENV{HOME}/Downloads/onnxruntime-linux-arm-1.16.3.zip
26-
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-1.16.3.zip
27-
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-1.16.3.zip
28-
/tmp/onnxruntime-linux-arm-1.16.3.zip
29-
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.16.3.zip
25+
$ENV{HOME}/Downloads/onnxruntime-linux-arm-1.17.0.zip
26+
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-1.17.0.zip
27+
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-1.17.0.zip
28+
/tmp/onnxruntime-linux-arm-1.17.0.zip
29+
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.17.0.zip
3030
)
3131

3232
foreach(f IN LISTS possible_file_locations)

cmake/onnxruntime-linux-x86_64-gpu.cmake

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ if(NOT SHERPA_ONNX_ENABLE_GPU)
1818
message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}")
1919
endif()
2020

21-
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-linux-x64-gpu-1.16.3.tgz")
22-
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-gpu-1.16.3.tgz")
23-
set(onnxruntime_HASH "SHA256=bbdc33367c056029b3ac0c042cbca2236b8f59a3a53b4daf23432ef1d8bf52de")
21+
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-x64-gpu-1.17.0.tgz")
22+
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-gpu-1.17.0.tgz")
23+
set(onnxruntime_HASH "SHA256=27cfa22af7301868b55220f8733361889286b30be0569a8f46abb63e90342180")
2424

2525
# If you don't have access to the Internet,
2626
# please download onnxruntime to one of the following locations.
2727
# You can add more if you want.
2828
set(possible_file_locations
29-
$ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.16.3.tgz
30-
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.16.3.tgz
31-
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.16.3.tgz
32-
/tmp/onnxruntime-linux-x64-gpu-1.16.3.tgz
33-
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.16.3.tgz
29+
$ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.17.0.tgz
30+
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.17.0.tgz
31+
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.17.0.tgz
32+
/tmp/onnxruntime-linux-x64-gpu-1.17.0.tgz
33+
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.17.0.tgz
3434
)
3535

3636
foreach(f IN LISTS possible_file_locations)

cmake/onnxruntime-linux-x86_64-static.cmake

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
1414
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
1515
endif()
1616

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

2121
# If you don't have access to the Internet,
2222
# please download onnxruntime to one of the following locations.
2323
# You can add more if you want.
2424
set(possible_file_locations
25-
$ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.16.3.zip
26-
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.16.3.zip
27-
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.16.3.zip
28-
/tmp/onnxruntime-linux-x64-static_lib-1.16.3.zip
29-
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.16.3.zip
25+
$ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.17.0.zip
26+
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.17.0.zip
27+
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.17.0.zip
28+
/tmp/onnxruntime-linux-x64-static_lib-1.17.0.zip
29+
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.17.0.zip
3030
)
3131

3232
foreach(f IN LISTS possible_file_locations)

cmake/onnxruntime-linux-x86_64.cmake

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
1414
message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
1515
endif()
1616

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

2121
# If you don't have access to the Internet,
2222
# please download onnxruntime to one of the following locations.
2323
# You can add more if you want.
2424
set(possible_file_locations
25-
$ENV{HOME}/Downloads/onnxruntime-linux-x64-1.16.3.tgz
26-
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-1.16.3.tgz
27-
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-1.16.3.tgz
28-
/tmp/onnxruntime-linux-x64-1.16.3.tgz
29-
/star-fj/fangjun/download/github/onnxruntime-linux-x64-1.16.3.tgz
25+
$ENV{HOME}/Downloads/onnxruntime-linux-x64-1.17.0.tgz
26+
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-1.17.0.tgz
27+
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-1.17.0.tgz
28+
/tmp/onnxruntime-linux-x64-1.17.0.tgz
29+
/star-fj/fangjun/download/github/onnxruntime-linux-x64-1.17.0.tgz
3030
)
3131

3232
foreach(f IN LISTS possible_file_locations)

cmake/onnxruntime-osx-arm64-static.cmake

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS)
1212
message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
1313
endif()
1414

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

1919
# If you don't have access to the Internet,
2020
# please download onnxruntime to one of the following locations.
2121
# You can add more if you want.
2222
set(possible_file_locations
23-
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.16.3.zip
24-
${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.16.3.zip
25-
${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.16.3.zip
26-
/tmp/onnxruntime-osx-arm64-static_lib-1.16.3.zip
23+
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.17.0.zip
24+
${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.17.0.zip
25+
${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.17.0.zip
26+
/tmp/onnxruntime-osx-arm64-static_lib-1.17.0.zip
2727
)
2828

2929
foreach(f IN LISTS possible_file_locations)

0 commit comments

Comments
 (0)