Committed by
GitHub
Update onnxruntime from 1.16.3 to 1.17.0 (#581)
正在显示
25 个修改的文件
包含
161 行增加
和
155 行删除
| @@ -82,35 +82,43 @@ jobs: | @@ -82,35 +82,43 @@ jobs: | ||
| 82 | uses: actions/cache@v3 | 82 | uses: actions/cache@v3 |
| 83 | with: | 83 | with: |
| 84 | path: toolchain | 84 | 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 |
| 86 | 86 | ||
| 87 | - name: Download toolchain | 87 | - name: Download toolchain |
| 88 | if: steps.cache-toolchain.outputs.cache-hit != 'true' | 88 | if: steps.cache-toolchain.outputs.cache-hit != 'true' |
| 89 | shell: bash | 89 | shell: bash |
| 90 | run: | | 90 | 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 |
| 92 | 92 | ||
| 93 | mkdir $GITHUB_WORKSPACE/toolchain | 93 | 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" | ||
| 95 | 106 | ||
| 96 | - name: Display toolchain info | 107 | - name: Display toolchain info |
| 97 | shell: bash | 108 | shell: bash |
| 98 | run: | | 109 | run: | |
| 99 | - export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH | ||
| 100 | - aarch64-linux-gnu-gcc --version | 110 | + aarch64-none-linux-gnu-gcc --version |
| 101 | 111 | ||
| 102 | - name: Display qemu-aarch64 -h | 112 | - name: Display qemu-aarch64 -h |
| 103 | shell: bash | 113 | shell: bash |
| 104 | run: | | 114 | run: | |
| 105 | export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH | 115 | 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 |
| 107 | qemu-aarch64 -h | 117 | qemu-aarch64 -h |
| 108 | 118 | ||
| 109 | - name: build aarch64-linux-gnu | 119 | - name: build aarch64-linux-gnu |
| 110 | shell: bash | 120 | shell: bash |
| 111 | run: | | 121 | run: | |
| 112 | - export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH | ||
| 113 | - | ||
| 114 | export CMAKE_CXX_COMPILER_LAUNCHER=ccache | 122 | export CMAKE_CXX_COMPILER_LAUNCHER=ccache |
| 115 | export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | 123 | export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" |
| 116 | 124 | ||
| @@ -130,7 +138,7 @@ jobs: | @@ -130,7 +138,7 @@ jobs: | ||
| 130 | run: | | 138 | run: | |
| 131 | export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH | 139 | export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH |
| 132 | export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH | 140 | 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 |
| 134 | 142 | ||
| 135 | ls -lh ./build-aarch64-linux-gnu/bin | 143 | ls -lh ./build-aarch64-linux-gnu/bin |
| 136 | 144 | ||
| @@ -141,8 +149,7 @@ jobs: | @@ -141,8 +149,7 @@ jobs: | ||
| 141 | - name: Copy files | 149 | - name: Copy files |
| 142 | shell: bash | 150 | shell: bash |
| 143 | run: | | 151 | run: | |
| 144 | - export PATH=$GITHUB_WORKSPACE/toolchain/bin:$PATH | ||
| 145 | - aarch64-linux-gnu-strip --version | 152 | + aarch64-none-linux-gnu-strip --version |
| 146 | 153 | ||
| 147 | SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) | 154 | SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) |
| 148 | 155 | ||
| @@ -157,7 +164,7 @@ jobs: | @@ -157,7 +164,7 @@ jobs: | ||
| 157 | 164 | ||
| 158 | ls -lh $dst/bin/ | 165 | ls -lh $dst/bin/ |
| 159 | echo "strip" | 166 | echo "strip" |
| 160 | - aarch64-linux-gnu-strip $dst/bin/* | 167 | + aarch64-none-linux-gnu-strip $dst/bin/* |
| 161 | 168 | ||
| 162 | tree $dst | 169 | tree $dst |
| 163 | 170 |
| @@ -82,17 +82,16 @@ jobs: | @@ -82,17 +82,16 @@ jobs: | ||
| 82 | uses: actions/cache@v3 | 82 | uses: actions/cache@v3 |
| 83 | with: | 83 | with: |
| 84 | path: toolchain | 84 | 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 |
| 86 | 86 | ||
| 87 | - name: Download toolchain | 87 | - name: Download toolchain |
| 88 | if: steps.cache-toolchain.outputs.cache-hit != 'true' | 88 | if: steps.cache-toolchain.outputs.cache-hit != 'true' |
| 89 | shell: bash | 89 | shell: bash |
| 90 | run: | | 90 | 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 |
| 93 | 92 | ||
| 94 | mkdir $GITHUB_WORKSPACE/toolchain | 93 | 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 |
| 96 | 95 | ||
| 97 | - name: Display toolchain info | 96 | - name: Display toolchain info |
| 98 | shell: bash | 97 | shell: bash |
| @@ -42,7 +42,7 @@ fi | @@ -42,7 +42,7 @@ fi | ||
| 42 | 42 | ||
| 43 | echo "ANDROID_NDK: $ANDROID_NDK" | 43 | echo "ANDROID_NDK: $ANDROID_NDK" |
| 44 | sleep 1 | 44 | sleep 1 |
| 45 | -onnxruntime_version=v1.16.3 | 45 | +onnxruntime_version=v1.17.0 |
| 46 | 46 | ||
| 47 | if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/arm64-v8a/libonnxruntime.so ]; then | 47 | if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/arm64-v8a/libonnxruntime.so ]; then |
| 48 | if [ ! -d android-onnxruntime-libs ]; then | 48 | if [ ! -d android-onnxruntime-libs ]; then |
| @@ -43,7 +43,7 @@ fi | @@ -43,7 +43,7 @@ fi | ||
| 43 | echo "ANDROID_NDK: $ANDROID_NDK" | 43 | echo "ANDROID_NDK: $ANDROID_NDK" |
| 44 | sleep 1 | 44 | sleep 1 |
| 45 | 45 | ||
| 46 | -onnxruntime_version=v1.16.3 | 46 | +onnxruntime_version=v1.17.0 |
| 47 | 47 | ||
| 48 | if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/armeabi-v7a/libonnxruntime.so ]; then | 48 | if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/armeabi-v7a/libonnxruntime.so ]; then |
| 49 | if [ ! -d android-onnxruntime-libs ]; then | 49 | if [ ! -d android-onnxruntime-libs ]; then |
| @@ -43,7 +43,7 @@ fi | @@ -43,7 +43,7 @@ fi | ||
| 43 | echo "ANDROID_NDK: $ANDROID_NDK" | 43 | echo "ANDROID_NDK: $ANDROID_NDK" |
| 44 | sleep 1 | 44 | sleep 1 |
| 45 | 45 | ||
| 46 | -onnxruntime_version=v1.16.3 | 46 | +onnxruntime_version=v1.17.0 |
| 47 | 47 | ||
| 48 | if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86_64/libonnxruntime.so ]; then | 48 | if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86_64/libonnxruntime.so ]; then |
| 49 | if [ ! -d android-onnxruntime-libs ]; then | 49 | if [ ! -d android-onnxruntime-libs ]; then |
| @@ -43,7 +43,7 @@ fi | @@ -43,7 +43,7 @@ fi | ||
| 43 | echo "ANDROID_NDK: $ANDROID_NDK" | 43 | echo "ANDROID_NDK: $ANDROID_NDK" |
| 44 | sleep 1 | 44 | sleep 1 |
| 45 | 45 | ||
| 46 | -onnxruntime_version=v1.16.3 | 46 | +onnxruntime_version=v1.17.0 |
| 47 | 47 | ||
| 48 | if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86/libonnxruntime.so ]; then | 48 | if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86/libonnxruntime.so ]; then |
| 49 | if [ ! -d android-onnxruntime-libs ]; then | 49 | if [ ! -d android-onnxruntime-libs ]; then |
| @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) | @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) | ||
| 14 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 14 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 15 | endif() | 15 | endif() |
| 16 | 16 | ||
| 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") | ||
| 20 | 20 | ||
| 21 | # If you don't have access to the Internet, | 21 | # If you don't have access to the Internet, |
| 22 | # please download onnxruntime to one of the following locations. | 22 | # please download onnxruntime to one of the following locations. |
| 23 | # You can add more if you want. | 23 | # You can add more if you want. |
| 24 | set(possible_file_locations | 24 | 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 | ||
| 30 | ) | 30 | ) |
| 31 | 31 | ||
| 32 | foreach(f IN LISTS possible_file_locations) | 32 | foreach(f IN LISTS possible_file_locations) |
| @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) | @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) | ||
| 14 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 14 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 15 | endif() | 15 | endif() |
| 16 | 16 | ||
| 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") | ||
| 20 | 20 | ||
| 21 | # If you don't have access to the Internet, | 21 | # If you don't have access to the Internet, |
| 22 | # please download onnxruntime to one of the following locations. | 22 | # please download onnxruntime to one of the following locations. |
| 23 | # You can add more if you want. | 23 | # You can add more if you want. |
| 24 | set(possible_file_locations | 24 | 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 | ||
| 30 | ) | 30 | ) |
| 31 | 31 | ||
| 32 | foreach(f IN LISTS possible_file_locations) | 32 | foreach(f IN LISTS possible_file_locations) |
| @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) | @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) | ||
| 14 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 14 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 15 | endif() | 15 | endif() |
| 16 | 16 | ||
| 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") | ||
| 20 | 20 | ||
| 21 | # If you don't have access to the Internet, | 21 | # If you don't have access to the Internet, |
| 22 | # please download onnxruntime to one of the following locations. | 22 | # please download onnxruntime to one of the following locations. |
| 23 | # You can add more if you want. | 23 | # You can add more if you want. |
| 24 | set(possible_file_locations | 24 | 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 | ||
| 30 | ) | 30 | ) |
| 31 | 31 | ||
| 32 | foreach(f IN LISTS possible_file_locations) | 32 | foreach(f IN LISTS possible_file_locations) |
| @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) | @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) | ||
| 14 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 14 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 15 | endif() | 15 | endif() |
| 16 | 16 | ||
| 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") | ||
| 20 | 20 | ||
| 21 | # If you don't have access to the Internet, | 21 | # If you don't have access to the Internet, |
| 22 | # please download onnxruntime to one of the following locations. | 22 | # please download onnxruntime to one of the following locations. |
| 23 | # You can add more if you want. | 23 | # You can add more if you want. |
| 24 | set(possible_file_locations | 24 | 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 | ||
| 30 | ) | 30 | ) |
| 31 | 31 | ||
| 32 | foreach(f IN LISTS possible_file_locations) | 32 | foreach(f IN LISTS possible_file_locations) |
| @@ -18,19 +18,19 @@ if(NOT SHERPA_ONNX_ENABLE_GPU) | @@ -18,19 +18,19 @@ if(NOT SHERPA_ONNX_ENABLE_GPU) | ||
| 18 | message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}") | 18 | message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}") |
| 19 | endif() | 19 | endif() |
| 20 | 20 | ||
| 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") | ||
| 24 | 24 | ||
| 25 | # If you don't have access to the Internet, | 25 | # If you don't have access to the Internet, |
| 26 | # please download onnxruntime to one of the following locations. | 26 | # please download onnxruntime to one of the following locations. |
| 27 | # You can add more if you want. | 27 | # You can add more if you want. |
| 28 | set(possible_file_locations | 28 | 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 | ||
| 34 | ) | 34 | ) |
| 35 | 35 | ||
| 36 | foreach(f IN LISTS possible_file_locations) | 36 | foreach(f IN LISTS possible_file_locations) |
| @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) | @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) | ||
| 14 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 14 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 15 | endif() | 15 | endif() |
| 16 | 16 | ||
| 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") | ||
| 20 | 20 | ||
| 21 | # If you don't have access to the Internet, | 21 | # If you don't have access to the Internet, |
| 22 | # please download onnxruntime to one of the following locations. | 22 | # please download onnxruntime to one of the following locations. |
| 23 | # You can add more if you want. | 23 | # You can add more if you want. |
| 24 | set(possible_file_locations | 24 | 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 | ||
| 30 | ) | 30 | ) |
| 31 | 31 | ||
| 32 | foreach(f IN LISTS possible_file_locations) | 32 | foreach(f IN LISTS possible_file_locations) |
| @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) | @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) | ||
| 14 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 14 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 15 | endif() | 15 | endif() |
| 16 | 16 | ||
| 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") | ||
| 20 | 20 | ||
| 21 | # If you don't have access to the Internet, | 21 | # If you don't have access to the Internet, |
| 22 | # please download onnxruntime to one of the following locations. | 22 | # please download onnxruntime to one of the following locations. |
| 23 | # You can add more if you want. | 23 | # You can add more if you want. |
| 24 | set(possible_file_locations | 24 | 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 | ||
| 30 | ) | 30 | ) |
| 31 | 31 | ||
| 32 | foreach(f IN LISTS possible_file_locations) | 32 | foreach(f IN LISTS possible_file_locations) |
| @@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS) | @@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS) | ||
| 12 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 12 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 13 | endif() | 13 | endif() |
| 14 | 14 | ||
| 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") | ||
| 18 | 18 | ||
| 19 | # If you don't have access to the Internet, | 19 | # If you don't have access to the Internet, |
| 20 | # please download onnxruntime to one of the following locations. | 20 | # please download onnxruntime to one of the following locations. |
| 21 | # You can add more if you want. | 21 | # You can add more if you want. |
| 22 | set(possible_file_locations | 22 | 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 | ||
| 27 | ) | 27 | ) |
| 28 | 28 | ||
| 29 | foreach(f IN LISTS possible_file_locations) | 29 | foreach(f IN LISTS possible_file_locations) |
| @@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS) | @@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS) | ||
| 12 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 12 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 13 | endif() | 13 | endif() |
| 14 | 14 | ||
| 15 | -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-osx-arm64-1.16.3.tgz") | ||
| 16 | -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-1.16.3.tgz") | ||
| 17 | -set(onnxruntime_HASH "SHA256=30f3acaa17c51ccd7ae1f6c3d7ac3154031abb9f91a0eb834aeb804f097ce795") | 15 | +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-osx-arm64-1.17.0.tgz") |
| 16 | +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-1.17.0.tgz") | ||
| 17 | +set(onnxruntime_HASH "SHA256=f72a2bcca40e2650756c6b96c69ef031236aaab1b98673e744da4eef0c4bddbd") | ||
| 18 | 18 | ||
| 19 | # If you don't have access to the Internet, | 19 | # If you don't have access to the Internet, |
| 20 | # please download onnxruntime to one of the following locations. | 20 | # please download onnxruntime to one of the following locations. |
| 21 | # You can add more if you want. | 21 | # You can add more if you want. |
| 22 | set(possible_file_locations | 22 | set(possible_file_locations |
| 23 | - $ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.16.3.tgz | ||
| 24 | - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-1.16.3.tgz | ||
| 25 | - ${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-1.16.3.tgz | ||
| 26 | - /tmp/onnxruntime-osx-arm64-1.16.3.tgz | 23 | + $ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.17.0.tgz |
| 24 | + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-1.17.0.tgz | ||
| 25 | + ${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-1.17.0.tgz | ||
| 26 | + /tmp/onnxruntime-osx-arm64-1.17.0.tgz | ||
| 27 | ) | 27 | ) |
| 28 | 28 | ||
| 29 | foreach(f IN LISTS possible_file_locations) | 29 | foreach(f IN LISTS possible_file_locations) |
| @@ -13,18 +13,18 @@ if(BUILD_SHARED_LIBS) | @@ -13,18 +13,18 @@ if(BUILD_SHARED_LIBS) | ||
| 13 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 13 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 14 | endif() | 14 | endif() |
| 15 | 15 | ||
| 16 | -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.3/onnxruntime-osx-universal2-static_lib-1.16.3.zip") | ||
| 17 | -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-static_lib-1.16.3.zip") | ||
| 18 | -set(onnxruntime_HASH "SHA256=19e39beefbb6d103c1d4c5a2d64bfbd6dd4c21f37d6545170ce3c59a5e2af452") | 16 | +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-osx-universal2-static_lib-1.17.0.zip") |
| 17 | +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-static_lib-1.17.0.zip") | ||
| 18 | +set(onnxruntime_HASH "SHA256=f5b0367e1be12e8697b34f41a0cec8dc92fc6c445bd5f39865d725e873ad0550") | ||
| 19 | 19 | ||
| 20 | # If you don't have access to the Internet, | 20 | # If you don't have access to the Internet, |
| 21 | # please download onnxruntime to one of the following locations. | 21 | # please download onnxruntime to one of the following locations. |
| 22 | # You can add more if you want. | 22 | # You can add more if you want. |
| 23 | set(possible_file_locations | 23 | set(possible_file_locations |
| 24 | - $ENV{HOME}/Downloads/onnxruntime-osx-universal2-static_lib-1.16.3.zip | ||
| 25 | - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.16.3.zip | ||
| 26 | - ${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.16.3.zip | ||
| 27 | - /tmp/onnxruntime-osx-universal2-static_lib-1.16.3.zip | 24 | + $ENV{HOME}/Downloads/onnxruntime-osx-universal2-static_lib-1.17.0.zip |
| 25 | + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.17.0.zip | ||
| 26 | + ${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.17.0.zip | ||
| 27 | + /tmp/onnxruntime-osx-universal2-static_lib-1.17.0.zip | ||
| 28 | ) | 28 | ) |
| 29 | 29 | ||
| 30 | foreach(f IN LISTS possible_file_locations) | 30 | foreach(f IN LISTS possible_file_locations) |
| @@ -13,18 +13,18 @@ if(NOT BUILD_SHARED_LIBS) | @@ -13,18 +13,18 @@ if(NOT BUILD_SHARED_LIBS) | ||
| 13 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 13 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 14 | endif() | 14 | endif() |
| 15 | 15 | ||
| 16 | -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-osx-universal2-1.16.3.tgz") | ||
| 17 | -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-1.16.3.tgz") | ||
| 18 | -set(onnxruntime_HASH "SHA256=6428d0f0ff1386e8e8256a708e187c1f8861387c9554bfc9c5f3390ffa0df5cc") | 16 | +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-osx-universal2-1.17.0.tgz") |
| 17 | +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-1.17.0.tgz") | ||
| 18 | +set(onnxruntime_HASH "SHA256=d6c81efc9be29d504d5f4cc01fec1317861b0ab34f172ad5e6198b486fa43cfd") | ||
| 19 | 19 | ||
| 20 | # If you don't have access to the Internet, | 20 | # If you don't have access to the Internet, |
| 21 | # please download onnxruntime to one of the following locations. | 21 | # please download onnxruntime to one of the following locations. |
| 22 | # You can add more if you want. | 22 | # You can add more if you want. |
| 23 | set(possible_file_locations | 23 | set(possible_file_locations |
| 24 | - $ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.16.3.tgz | ||
| 25 | - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-1.16.3.tgz | ||
| 26 | - ${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-1.16.3.tgz | ||
| 27 | - /tmp/onnxruntime-osx-universal2-1.16.3.tgz | 24 | + $ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.17.0.tgz |
| 25 | + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-1.17.0.tgz | ||
| 26 | + ${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-1.17.0.tgz | ||
| 27 | + /tmp/onnxruntime-osx-universal2-1.17.0.tgz | ||
| 28 | ) | 28 | ) |
| 29 | 29 | ||
| 30 | foreach(f IN LISTS possible_file_locations) | 30 | foreach(f IN LISTS possible_file_locations) |
| @@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS) | @@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS) | ||
| 12 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 12 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 13 | endif() | 13 | endif() |
| 14 | 14 | ||
| 15 | -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.3/onnxruntime-osx-x86_64-static_lib-1.16.3.zip") | ||
| 16 | -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-x86_64-static_lib-1.16.3.zip") | ||
| 17 | -set(onnxruntime_HASH "SHA256=c1444c34b8798aa5033e9247727262a2f2ae26a2dd6de0765547c22ba527cf22") | 15 | +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-osx-x86_64-static_lib-1.17.0.zip") |
| 16 | +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-x86_64-static_lib-1.17.0.zip") | ||
| 17 | +set(onnxruntime_HASH "SHA256=280c68f8ebb3d2c6ccb62b07192d888690dfa6e65abe92b97c85cbadd846d931") | ||
| 18 | 18 | ||
| 19 | # If you don't have access to the Internet, | 19 | # If you don't have access to the Internet, |
| 20 | # please download onnxruntime to one of the following locations. | 20 | # please download onnxruntime to one of the following locations. |
| 21 | # You can add more if you want. | 21 | # You can add more if you want. |
| 22 | set(possible_file_locations | 22 | set(possible_file_locations |
| 23 | - $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-static_lib-1.16.3.zip | ||
| 24 | - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-x86_64-static_lib-1.16.3.zip | ||
| 25 | - ${CMAKE_BINARY_DIR}/onnxruntime-osx-x86_64-static_lib-1.16.3.zip | ||
| 26 | - /tmp/onnxruntime-osx-x86_64-static_lib-1.16.3.zip | 23 | + $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-static_lib-1.17.0.zip |
| 24 | + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-x86_64-static_lib-1.17.0.zip | ||
| 25 | + ${CMAKE_BINARY_DIR}/onnxruntime-osx-x86_64-static_lib-1.17.0.zip | ||
| 26 | + /tmp/onnxruntime-osx-x86_64-static_lib-1.17.0.zip | ||
| 27 | ) | 27 | ) |
| 28 | 28 | ||
| 29 | foreach(f IN LISTS possible_file_locations) | 29 | foreach(f IN LISTS possible_file_locations) |
| @@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS) | @@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS) | ||
| 12 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 12 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 13 | endif() | 13 | endif() |
| 14 | 14 | ||
| 15 | -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-osx-x86_64-1.16.3.tgz") | ||
| 16 | -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-x86_64-1.16.3.tgz") | ||
| 17 | -set(onnxruntime_HASH "SHA256=a395923ed91192e46bf50aec48d728dbf193dbd547ad50a231ba32df51608507") | 15 | +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-osx-x86_64-1.17.0.tgz") |
| 16 | +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-x86_64-1.17.0.tgz") | ||
| 17 | +set(onnxruntime_HASH "SHA256=b87b2febef24e5645e13859d176e76473124325a0b1526baf7f68b4aa1eb1b49") | ||
| 18 | 18 | ||
| 19 | # If you don't have access to the Internet, | 19 | # If you don't have access to the Internet, |
| 20 | # please download onnxruntime to one of the following locations. | 20 | # please download onnxruntime to one of the following locations. |
| 21 | # You can add more if you want. | 21 | # You can add more if you want. |
| 22 | set(possible_file_locations | 22 | set(possible_file_locations |
| 23 | - $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-1.16.3.tgz | ||
| 24 | - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-x86_64-1.16.3.tgz | ||
| 25 | - ${CMAKE_BINARY_DIR}/onnxruntime-osx-x86_64-1.16.3.tgz | ||
| 26 | - /tmp/onnxruntime-osx-x86_64-1.16.3.tgz | 23 | + $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-1.17.0.tgz |
| 24 | + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-x86_64-1.17.0.tgz | ||
| 25 | + ${CMAKE_BINARY_DIR}/onnxruntime-osx-x86_64-1.17.0.tgz | ||
| 26 | + /tmp/onnxruntime-osx-x86_64-1.17.0.tgz | ||
| 27 | ) | 27 | ) |
| 28 | 28 | ||
| 29 | foreach(f IN LISTS possible_file_locations) | 29 | foreach(f IN LISTS possible_file_locations) |
| @@ -19,18 +19,18 @@ if(NOT SHERPA_ONNX_ENABLE_GPU) | @@ -19,18 +19,18 @@ if(NOT SHERPA_ONNX_ENABLE_GPU) | ||
| 19 | message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}") | 19 | message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}") |
| 20 | endif() | 20 | endif() |
| 21 | 21 | ||
| 22 | -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-win-x64-gpu-1.16.3.zip") | ||
| 23 | -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-gpu-1.16.3.zip") | ||
| 24 | -set(onnxruntime_HASH "SHA256=4facf5abd081accb64da0b4caa267d98e536427111f3246a3ddb09c6325756b9") | 22 | +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-win-x64-gpu-1.17.0.zip") |
| 23 | +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-gpu-1.17.0.zip") | ||
| 24 | +set(onnxruntime_HASH "SHA256=3c90a38769e2f7bdb088c00410de4895b07b7d53a7c80955f18989775c2a25e7") | ||
| 25 | 25 | ||
| 26 | # If you don't have access to the Internet, | 26 | # If you don't have access to the Internet, |
| 27 | # please download onnxruntime to one of the following locations. | 27 | # please download onnxruntime to one of the following locations. |
| 28 | # You can add more if you want. | 28 | # You can add more if you want. |
| 29 | set(possible_file_locations | 29 | set(possible_file_locations |
| 30 | - $ENV{HOME}/Downloads/onnxruntime-win-x64-gpu-1.16.3.zip | ||
| 31 | - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-gpu-1.16.3.zip | ||
| 32 | - ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-gpu-1.16.3.zip | ||
| 33 | - /tmp/onnxruntime-win-x64-gpu-1.16.3.zip | 30 | + $ENV{HOME}/Downloads/onnxruntime-win-x64-gpu-1.17.0.zip |
| 31 | + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-gpu-1.17.0.zip | ||
| 32 | + ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-gpu-1.17.0.zip | ||
| 33 | + /tmp/onnxruntime-win-x64-gpu-1.17.0.zip | ||
| 34 | ) | 34 | ) |
| 35 | 35 | ||
| 36 | foreach(f IN LISTS possible_file_locations) | 36 | foreach(f IN LISTS possible_file_locations) |
| @@ -15,18 +15,18 @@ if(BUILD_SHARED_LIBS) | @@ -15,18 +15,18 @@ if(BUILD_SHARED_LIBS) | ||
| 15 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 15 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 16 | endif() | 16 | endif() |
| 17 | 17 | ||
| 18 | -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.3/onnxruntime-win-x64-static_lib-1.16.3.tar.bz2") | ||
| 19 | -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-static_lib-1.16.3.tar.bz2") | ||
| 20 | -set(onnxruntime_HASH "SHA256=5d49f4cd576c8a850dd61bf673315c9e6ec111b09ceb81934048a2afb23ee5d6") | 18 | +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-win-x64-static_lib-1.17.0.tar.bz2") |
| 19 | +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-static_lib-1.17.0.tar.bz2") | ||
| 20 | +set(onnxruntime_HASH "SHA256=7ff33b989fbe32546d694284d46653fd4c38f47155105ec14907e6d3cd4b01bb") | ||
| 21 | 21 | ||
| 22 | # If you don't have access to the Internet, | 22 | # If you don't have access to the Internet, |
| 23 | # please download onnxruntime to one of the following locations. | 23 | # please download onnxruntime to one of the following locations. |
| 24 | # You can add more if you want. | 24 | # You can add more if you want. |
| 25 | set(possible_file_locations | 25 | set(possible_file_locations |
| 26 | - $ENV{HOME}/Downloads/onnxruntime-win-x64-static_lib-1.16.3.tar.bz2 | ||
| 27 | - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-static_lib-1.16.3.tar.bz2 | ||
| 28 | - ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-static_lib-1.16.3.tar.bz2 | ||
| 29 | - /tmp/onnxruntime-win-x64-static_lib-1.16.3.tar.bz2 | 26 | + $ENV{HOME}/Downloads/onnxruntime-win-x64-static_lib-1.17.0.tar.bz2 |
| 27 | + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-static_lib-1.17.0.tar.bz2 | ||
| 28 | + ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-static_lib-1.17.0.tar.bz2 | ||
| 29 | + /tmp/onnxruntime-win-x64-static_lib-1.17.0.tar.bz2 | ||
| 30 | ) | 30 | ) |
| 31 | 31 | ||
| 32 | foreach(f IN LISTS possible_file_locations) | 32 | foreach(f IN LISTS possible_file_locations) |
| @@ -15,18 +15,18 @@ if(NOT BUILD_SHARED_LIBS) | @@ -15,18 +15,18 @@ if(NOT BUILD_SHARED_LIBS) | ||
| 15 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 15 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 16 | endif() | 16 | endif() |
| 17 | 17 | ||
| 18 | -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-win-x64-1.16.3.zip") | ||
| 19 | -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-1.16.3.zip") | ||
| 20 | -set(onnxruntime_HASH "SHA256=5eb01f69bb2d9fa2893c88310bb5c1eb8d79e8c460810817eef08b6f9b1078af") | 18 | +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-win-x64-1.17.0.zip") |
| 19 | +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-1.17.0.zip") | ||
| 20 | +set(onnxruntime_HASH "SHA256=b0436634108c001e2284cb685646047a7b088715b64c05e39ee8a1a8930776a9") | ||
| 21 | 21 | ||
| 22 | # If you don't have access to the Internet, | 22 | # If you don't have access to the Internet, |
| 23 | # please download onnxruntime to one of the following locations. | 23 | # please download onnxruntime to one of the following locations. |
| 24 | # You can add more if you want. | 24 | # You can add more if you want. |
| 25 | set(possible_file_locations | 25 | set(possible_file_locations |
| 26 | - $ENV{HOME}/Downloads/onnxruntime-win-x64-1.16.3.zip | ||
| 27 | - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-1.16.3.zip | ||
| 28 | - ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-1.16.3.zip | ||
| 29 | - /tmp/onnxruntime-win-x64-1.16.3.zip | 26 | + $ENV{HOME}/Downloads/onnxruntime-win-x64-1.17.0.zip |
| 27 | + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-1.17.0.zip | ||
| 28 | + ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-1.17.0.zip | ||
| 29 | + /tmp/onnxruntime-win-x64-1.17.0.zip | ||
| 30 | ) | 30 | ) |
| 31 | 31 | ||
| 32 | foreach(f IN LISTS possible_file_locations) | 32 | foreach(f IN LISTS possible_file_locations) |
| @@ -15,18 +15,18 @@ if(BUILD_SHARED_LIBS) | @@ -15,18 +15,18 @@ if(BUILD_SHARED_LIBS) | ||
| 15 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 15 | message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 16 | endif() | 16 | endif() |
| 17 | 17 | ||
| 18 | -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.3/onnxruntime-win-x86-static_lib-1.16.3.tar.bz2") | ||
| 19 | -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x86-static_lib-1.16.3.tar.bz2") | ||
| 20 | -set(onnxruntime_HASH "SHA256=b291d25be9b6214d1ed058635a1fcaf5bb49b996c3d77b1a60b5e7767718a036") | 18 | +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.0/onnxruntime-win-x86-static_lib-1.17.0.tar.bz2") |
| 19 | +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x86-static_lib-1.17.0.tar.bz2") | ||
| 20 | +set(onnxruntime_HASH "SHA256=3c40c53fef937452bf6cfbac1584875d5627bd908ca731d120642112526c8352") | ||
| 21 | 21 | ||
| 22 | # If you don't have access to the Internet, | 22 | # If you don't have access to the Internet, |
| 23 | # please download onnxruntime to one of the following locations. | 23 | # please download onnxruntime to one of the following locations. |
| 24 | # You can add more if you want. | 24 | # You can add more if you want. |
| 25 | set(possible_file_locations | 25 | set(possible_file_locations |
| 26 | - $ENV{HOME}/Downloads/onnxruntime-win-x86-static_lib-1.16.3.tar.bz2 | ||
| 27 | - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-static_lib-1.16.3.tar.bz2 | ||
| 28 | - ${CMAKE_BINARY_DIR}/onnxruntime-win-x86-static_lib-1.16.3.tar.bz2 | ||
| 29 | - /tmp/onnxruntime-win-x86-static_lib-1.16.3.tar.bz2 | 26 | + $ENV{HOME}/Downloads/onnxruntime-win-x86-static_lib-1.17.0.tar.bz2 |
| 27 | + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-static_lib-1.17.0.tar.bz2 | ||
| 28 | + ${CMAKE_BINARY_DIR}/onnxruntime-win-x86-static_lib-1.17.0.tar.bz2 | ||
| 29 | + /tmp/onnxruntime-win-x86-static_lib-1.17.0.tar.bz2 | ||
| 30 | ) | 30 | ) |
| 31 | 31 | ||
| 32 | foreach(f IN LISTS possible_file_locations) | 32 | foreach(f IN LISTS possible_file_locations) |
| @@ -15,18 +15,18 @@ if(NOT BUILD_SHARED_LIBS) | @@ -15,18 +15,18 @@ if(NOT BUILD_SHARED_LIBS) | ||
| 15 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") | 15 | message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") |
| 16 | endif() | 16 | endif() |
| 17 | 17 | ||
| 18 | -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-win-x86-1.16.3.zip") | ||
| 19 | -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x86-1.16.3.zip") | ||
| 20 | -set(onnxruntime_HASH "SHA256=9731c6d43588b34fd9b74c704cbc2864ff4384820d7a7f177062c1524bea624b") | 18 | +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-win-x86-1.17.0.zip") |
| 19 | +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x86-1.17.0.zip") | ||
| 20 | +set(onnxruntime_HASH "SHA256=3f3214f99165d3282cc5647c5a18451aaaaf326599c7e98913ce6c50e50c6463") | ||
| 21 | 21 | ||
| 22 | # If you don't have access to the Internet, | 22 | # If you don't have access to the Internet, |
| 23 | # please download onnxruntime to one of the following locations. | 23 | # please download onnxruntime to one of the following locations. |
| 24 | # You can add more if you want. | 24 | # You can add more if you want. |
| 25 | set(possible_file_locations | 25 | set(possible_file_locations |
| 26 | - $ENV{HOME}/Downloads/onnxruntime-win-x86-1.16.3.zip | ||
| 27 | - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-1.16.3.zip | ||
| 28 | - ${CMAKE_BINARY_DIR}/onnxruntime-win-x86-1.16.3.zip | ||
| 29 | - /tmp/onnxruntime-win-x86-1.16.3.zip | 26 | + $ENV{HOME}/Downloads/onnxruntime-win-x86-1.17.0.zip |
| 27 | + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-1.17.0.zip | ||
| 28 | + ${CMAKE_BINARY_DIR}/onnxruntime-win-x86-1.17.0.zip | ||
| 29 | + /tmp/onnxruntime-win-x86-1.17.0.zip | ||
| 30 | ) | 30 | ) |
| 31 | 31 | ||
| 32 | foreach(f IN LISTS possible_file_locations) | 32 | foreach(f IN LISTS possible_file_locations) |
| @@ -36,7 +36,7 @@ def process_linux(s): | @@ -36,7 +36,7 @@ def process_linux(s): | ||
| 36 | "libespeak-ng.so", | 36 | "libespeak-ng.so", |
| 37 | "libkaldi-decoder-core.so", | 37 | "libkaldi-decoder-core.so", |
| 38 | "libkaldi-native-fbank-core.so", | 38 | "libkaldi-native-fbank-core.so", |
| 39 | - "libonnxruntime.so.1.16.3", | 39 | + "libonnxruntime.so.1.17.0", |
| 40 | "libpiper_phonemize.so.1", | 40 | "libpiper_phonemize.so.1", |
| 41 | "libsherpa-onnx-c-api.so", | 41 | "libsherpa-onnx-c-api.so", |
| 42 | "libsherpa-onnx-core.so", | 42 | "libsherpa-onnx-core.so", |
| @@ -64,7 +64,7 @@ def process_macos(s): | @@ -64,7 +64,7 @@ def process_macos(s): | ||
| 64 | "libespeak-ng.dylib", | 64 | "libespeak-ng.dylib", |
| 65 | "libkaldi-decoder-core.dylib", | 65 | "libkaldi-decoder-core.dylib", |
| 66 | "libkaldi-native-fbank-core.dylib", | 66 | "libkaldi-native-fbank-core.dylib", |
| 67 | - "libonnxruntime.1.16.3.dylib", | 67 | + "libonnxruntime.1.17.0.dylib", |
| 68 | "libpiper_phonemize.1.dylib", | 68 | "libpiper_phonemize.1.dylib", |
| 69 | "libsherpa-onnx-c-api.dylib", | 69 | "libsherpa-onnx-c-api.dylib", |
| 70 | "libsherpa-onnx-core.dylib", | 70 | "libsherpa-onnx-core.dylib", |
-
请 注册 或 登录 后发表评论