Skip to content

Commit

Permalink
Update onnxruntime to v1.16.2 (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Nov 12, 2023
1 parent 68f0e59 commit 9884cf7
Show file tree
Hide file tree
Showing 24 changed files with 140 additions and 140 deletions.
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.1
onnxruntime_version=v1.16.2

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.1
onnxruntime_version=v1.16.2

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.1
onnxruntime_version=v1.16.2

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.1
onnxruntime_version=v1.16.2

if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86/libonnxruntime.so ]; then
if [ ! -d android-onnxruntime-libs ]; then
Expand Down
2 changes: 1 addition & 1 deletion build-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
dir=build-ios
mkdir -p $dir
cd $dir
onnxruntime_version=1.16.1
onnxruntime_version=1.16.2

if [ ! -f ios-onnxruntime/$onnxruntime_version/onnxruntime.xcframework/ios-arm64/onnxruntime.a ]; then
if [ ! -d ios-onnxruntime ]; 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.1/onnxruntime-linux-aarch64-static_lib-1.16.1.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-static_lib-1.16.1.zip")
set(onnxruntime_HASH "SHA256=9b25c41fc2158b345744984d154ca975c8a772c0eb90a0ccfbe2be147b438ae3")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.2/onnxruntime-linux-aarch64-static_lib-1.16.2.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-static_lib-1.16.2.zip")
set(onnxruntime_HASH "SHA256=47c3f93612d978900eee8201ab36ee16bfc63b2ccbb216014bea7fdf5930c526")

# 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.1.zip
${PROJECT_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
${PROJECT_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
/tmp/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.16.2.zip
${PROJECT_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.2.zip
${PROJECT_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.2.zip
/tmp/onnxruntime-linux-aarch64-static_lib-1.16.2.zip
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.16.2.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.1/onnxruntime-linux-aarch64-1.16.1.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-1.16.1.tgz")
set(onnxruntime_HASH "SHA256=f10851b62eb44f9e811134737e7c6edd15733d2c1549cb6ce403808e9c047385")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.2/onnxruntime-linux-aarch64-1.16.2.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-1.16.2.tgz")
set(onnxruntime_HASH "SHA256=4c1a21bd9c3acc17d4176a09b89602954f511a97d489be0cfdf356ebd789c409")

# 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.1.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-linux-aarch64-1.16.1.tgz
${PROJECT_BINARY_DIR}/onnxruntime-linux-aarch64-1.16.1.tgz
/tmp/onnxruntime-linux-aarch64-1.16.1.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.16.1.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.16.2.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-linux-aarch64-1.16.2.tgz
${PROJECT_BINARY_DIR}/onnxruntime-linux-aarch64-1.16.2.tgz
/tmp/onnxruntime-linux-aarch64-1.16.2.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.16.2.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.1/onnxruntime-linux-arm-static_lib-1.16.1.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-static_lib-1.16.1.zip")
set(onnxruntime_HASH "SHA256=7f01a4b025a2ae3bececd2ea1bbef6bdc0b5df43395f6a799123b74fa6180356")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.2/onnxruntime-linux-arm-static_lib-1.16.2.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-static_lib-1.16.2.zip")
set(onnxruntime_HASH "SHA256=688cadd403c41975d29a9659e2ffcbbcdb5c60de281084a7a93170be5b33e60e")

# 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.1.zip
${PROJECT_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.16.1.zip
${PROJECT_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.16.1.zip
/tmp/onnxruntime-linux-arm-static_lib-1.16.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.16.1.zip
$ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.16.2.zip
${PROJECT_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.16.2.zip
${PROJECT_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.16.2.zip
/tmp/onnxruntime-linux-arm-static_lib-1.16.2.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.16.2.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.1/onnxruntime-linux-arm-1.16.1.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-1.16.1.zip")
set(onnxruntime_HASH "SHA256=a668be37aa2eb5370e682f7599266c767b5327c1468203c372d8ceca4be1b585")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.2/onnxruntime-linux-arm-1.16.2.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-1.16.2.zip")
set(onnxruntime_HASH "SHA256=3744a80478cba2c08d8a32a4d6a9dab45b47fd9bb4bde2ba1d1633bc00ca9990")

# 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.1.zip
${PROJECT_SOURCE_DIR}/onnxruntime-linux-arm-1.16.1.zip
${PROJECT_BINARY_DIR}/onnxruntime-linux-arm-1.16.1.zip
/tmp/onnxruntime-linux-arm-1.16.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.16.1.zip
$ENV{HOME}/Downloads/onnxruntime-linux-arm-1.16.2.zip
${PROJECT_SOURCE_DIR}/onnxruntime-linux-arm-1.16.2.zip
${PROJECT_BINARY_DIR}/onnxruntime-linux-arm-1.16.2.zip
/tmp/onnxruntime-linux-arm-1.16.2.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.16.2.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.1/onnxruntime-linux-x64-gpu-1.16.1.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-gpu-1.16.1.tgz")
set(onnxruntime_HASH "SHA256=474d5d74b588d54aa3e167f38acc9b1b8d20c292d0db92299bdc33a81eb4492d")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.2/onnxruntime-linux-x64-gpu-1.16.2.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-gpu-1.16.2.tgz")
set(onnxruntime_HASH "SHA256=84618c385d5cbac48fc714b8fb86e43828b52038144c1e0fdcb4c03293ae2d5a")

# 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.1.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.16.1.tgz
${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.16.1.tgz
/tmp/onnxruntime-linux-x64-gpu-1.16.1.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.16.1.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.16.2.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.16.2.tgz
${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.16.2.tgz
/tmp/onnxruntime-linux-x64-gpu-1.16.2.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.16.2.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.1/onnxruntime-linux-x64-static_lib-1.16.1.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-static_lib-1.16.1.zip")
set(onnxruntime_HASH "SHA256=0aa52fbff16ee9b165f42b7ea2ad61600d415d19681c9a9c6daca686c512cc64")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.2/onnxruntime-linux-x64-static_lib-1.16.2.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-static_lib-1.16.2.zip")
set(onnxruntime_HASH "SHA256=912205ff23d7b717f6a24e6fa5287feefbea51657b24c0934b0a178ead371bdb")

# 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.1.zip
${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.16.1.zip
${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.16.1.zip
/tmp/onnxruntime-linux-x64-static_lib-1.16.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.16.1.zip
$ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.16.2.zip
${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.16.2.zip
${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.16.2.zip
/tmp/onnxruntime-linux-x64-static_lib-1.16.2.zip
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.16.2.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.1/onnxruntime-linux-x64-1.16.1.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-1.16.1.tgz")
set(onnxruntime_HASH "SHA256=53a0f03f71587ed602e99e82773132fc634b74c2d227316fbfd4bf67181e72ed")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.2/onnxruntime-linux-x64-1.16.2.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-1.16.2.tgz")
set(onnxruntime_HASH "SHA256=70c769771ad4b6d63b87ca1f62d3f11e998ea0b9d738d6bbdd6a5e6d8c1deb31")

# 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.1.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-1.16.1.tgz
${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-1.16.1.tgz
/tmp/onnxruntime-linux-x64-1.16.1.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-1.16.1.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-x64-1.16.2.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-1.16.2.tgz
${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-1.16.2.tgz
/tmp/onnxruntime-linux-x64-1.16.2.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-1.16.2.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.1/onnxruntime-osx-arm64-static_lib-1.16.1.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-static_lib-1.16.1.zip")
set(onnxruntime_HASH "SHA256=2f7e9661bb01cf676f676c8d02e24a1e8e244e6f1e2a983e9a6f5f582b7e4a02")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.2/onnxruntime-osx-arm64-static_lib-1.16.2.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-static_lib-1.16.2.zip")
set(onnxruntime_HASH "SHA256=d981882bc46d7bdbbf44ea5678549fa620cc33989682cd4f0362c5affbf9e83c")

# 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.1.zip
${PROJECT_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.16.1.zip
${PROJECT_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.16.1.zip
/tmp/onnxruntime-osx-arm64-static_lib-1.16.1.zip
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.16.2.zip
${PROJECT_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.16.2.zip
${PROJECT_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.16.2.zip
/tmp/onnxruntime-osx-arm64-static_lib-1.16.2.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-arm64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ 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.1/onnxruntime-osx-arm64-1.16.1.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-1.16.1.tgz")
set(onnxruntime_HASH "SHA256=56ca6b8de3a220ea606c2067ba65d11dfa6e4f722e01ac7dc75f7152b81445e0")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.2/onnxruntime-osx-arm64-1.16.2.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-1.16.2.tgz")
set(onnxruntime_HASH "SHA256=129eb884b39102492ff6fad3dc5aeaa2b1cca3a941fbd7436aaacf87a549facf")

# 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-1.16.1.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-osx-arm64-1.16.1.tgz
${PROJECT_BINARY_DIR}/onnxruntime-osx-arm64-1.16.1.tgz
/tmp/onnxruntime-osx-arm64-1.16.1.tgz
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.16.2.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-osx-arm64-1.16.2.tgz
${PROJECT_BINARY_DIR}/onnxruntime-osx-arm64-1.16.2.tgz
/tmp/onnxruntime-osx-arm64-1.16.2.tgz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-universal-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,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.1/onnxruntime-osx-universal2-static_lib-1.16.1.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-static_lib-1.16.1.zip")
set(onnxruntime_HASH "SHA256=ec47c70f47a76da237c10607e5129b99230c101c132ea1ec13b90d6e36f84a89")
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.2/onnxruntime-osx-universal2-static_lib-1.16.2.zip")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-static_lib-1.16.2.zip")
set(onnxruntime_HASH "SHA256=d81e878186cddc70d9e0c5b36a0cc1bd7e7e705c97fad5878a300df2d12236a4")

# 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-universal2-static_lib-1.16.1.zip
${PROJECT_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.16.1.zip
${PROJECT_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.16.1.zip
/tmp/onnxruntime-osx-universal2-static_lib-1.16.1.zip
$ENV{HOME}/Downloads/onnxruntime-osx-universal2-static_lib-1.16.2.zip
${PROJECT_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.16.2.zip
${PROJECT_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.16.2.zip
/tmp/onnxruntime-osx-universal2-static_lib-1.16.2.zip
)

foreach(f IN LISTS possible_file_locations)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-universal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ 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.1/onnxruntime-osx-universal2-1.16.1.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-1.16.1.tgz")
set(onnxruntime_HASH "SHA256=e8568a4a3f602c25ea7c3bbd2f085340dff5bb68fa7c859fd763d944105e3d76")
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.2/onnxruntime-osx-universal2-1.16.2.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-1.16.2.tgz")
set(onnxruntime_HASH "SHA256=eb5200ceb5d196c5c84eb72a7831a780d1b63349b158405bc28a7817ad125b3d")

# 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-universal2-1.16.1.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-osx-universal2-1.16.1.tgz
${PROJECT_BINARY_DIR}/onnxruntime-osx-universal2-1.16.1.tgz
/tmp/onnxruntime-osx-universal2-1.16.1.tgz
$ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.16.2.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-osx-universal2-1.16.2.tgz
${PROJECT_BINARY_DIR}/onnxruntime-osx-universal2-1.16.2.tgz
/tmp/onnxruntime-osx-universal2-1.16.2.tgz
)

foreach(f IN LISTS possible_file_locations)
Expand Down
Loading

0 comments on commit 9884cf7

Please sign in to comment.