mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
Update eigen's URL (#18301)
### Description Update eigen's URL because the old one doesn't point to a release tag.
This commit is contained in:
parent
95c20d0d2a
commit
ad7cecb7e8
3 changed files with 60 additions and 4 deletions
|
|
@ -11,6 +11,7 @@ abseil_cpp;https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.zip
|
|||
cxxopts;https://github.com/jarro2783/cxxopts/archive/3c73d91c0b04e2b59462f0a741be8c07024c1bc0.zip;6c6ca7f8480b26c8d00476e0e24b7184717fe4f0
|
||||
date;https://github.com/HowardHinnant/date/archive/refs/tags/v2.4.1.zip;ea99f021262b1d804a872735c658860a6a13cc98
|
||||
dlpack;https://github.com/dmlc/dlpack/archive/refs/tags/v0.6.zip;4d565dd2e5b31321e5549591d78aa7f377173445
|
||||
eigen;https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.zip;ef24286b7ece8737c99fa831b02941843546c081
|
||||
flatbuffers;https://github.com/google/flatbuffers/archive/refs/tags/v1.12.0.zip;ba0a75fd12dbef8f6557a74e611b7a3d0c5fe7bf
|
||||
fp16;https://github.com/Maratyszcza/FP16/archive/0a92994d729ff76a58f692d3028ca1b64b145d91.zip;b985f6985a05a1c03ff1bb71190f66d8f98a1494
|
||||
fxdiv;https://github.com/Maratyszcza/FXdiv/archive/63058eff77e11aa15bf531df5dd34395ec3017c8.zip;a5658f4036402dbca7cebee32be57fb8149811e1
|
||||
|
|
@ -41,5 +42,4 @@ re2;https://github.com/google/re2/archive/refs/tags/2022-06-01.zip;aa77313b76e91
|
|||
safeint;https://github.com/dcleblanc/SafeInt/archive/ff15c6ada150a5018c5ef2172401cb4529eac9c0.zip;913a4046e5274d329af2806cb53194f617d8c0ab
|
||||
tensorboard;https://github.com/tensorflow/tensorboard/archive/373eb09e4c5d2b3cc2493f0949dc4be6b6a45e81.zip;67b833913605a4f3f499894ab11528a702c2b381
|
||||
cutlass;https://github.com/NVIDIA/cutlass/archive/refs/tags/v3.0.0.zip;0f95b3c1fc1bd1175c4a90b2c9e39074d1bccefd
|
||||
extensions;https://github.com/microsoft/onnxruntime-extensions/archive/94142d8391c9791ec71c38336436319a2d4ac7a0.zip;4365ac5140338b4cb75a39944a4be276e3829b3c
|
||||
eigen;https://gitlab.com/libeigen/eigen/-/archive/3.4/eigen-3.4.zip;ee201b07085203ea7bd8eb97cbcb31b07cfa3efb
|
||||
extensions;https://github.com/microsoft/onnxruntime-extensions/archive/94142d8391c9791ec71c38336436319a2d4ac7a0.zip;4365ac5140338b4cb75a39944a4be276e3829b3c
|
||||
56
cmake/deps_update_and_upload.py
Normal file
56
cmake/deps_update_and_upload.py
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# in case deps.txt is updated, run this file to update and upload the dependencies so that CI can use them.
|
||||
# Before running the script, increase the version number found at:
|
||||
# https://aiinfra.visualstudio.com/Lotus/_artifacts/feed/Lotus/UPack/onnxruntime_build_dependencies/versions
|
||||
# Run without --do-upload once to verify downloading. Use --do-upload when you are ready to publish.
|
||||
# python cmake/deps_update_and_upload.py --root-path C:/temp/onnxruntime_deps --version 1.0.82 --do-upload
|
||||
# update version number in tools\ci_build\github\azure-pipelines\templates\download-deps.yml
|
||||
import re
|
||||
import subprocess
|
||||
import os
|
||||
import argparse
|
||||
import tempfile
|
||||
|
||||
parser = argparse.ArgumentParser(description="Update dependencies and publish to Azure Artifacts")
|
||||
parser.add_argument(
|
||||
"--root-path", type=str, default=tempfile.gettempdir(), help="Target root path for downloaded files"
|
||||
)
|
||||
parser.add_argument("--version", type=str, default="1.0.82", help="Package version to publish")
|
||||
parser.add_argument("--do-upload", action="store_true", help="Upload the package to Azure Artifacts")
|
||||
args = parser.parse_args()
|
||||
|
||||
with open("cmake/deps.txt") as file:
|
||||
text = file.read()
|
||||
|
||||
lines = [line for line in text.split("\n") if not line.startswith("#") and ";" in line]
|
||||
|
||||
root_path = args.root_path
|
||||
|
||||
for line in lines:
|
||||
url = re.sub("^[^;]+?;https://([^;]+?);.*", r"https://\1", line)
|
||||
filename = re.sub("^[^;]+?;https://([^;]+?);.*", r"\1", line)
|
||||
full_path = os.path.join(root_path, filename)
|
||||
subprocess.run(["curl", "-sSL", "--create-dirs", "-o", full_path, url]) # noqa: PLW1510
|
||||
|
||||
package_name = "onnxruntime_build_dependencies"
|
||||
version = args.version
|
||||
|
||||
# Check if the user is logged in to Azure
|
||||
result = subprocess.run("az account show", shell=True, capture_output=True, text=True) # noqa: PLW1510
|
||||
if "No subscriptions found" in result.stderr:
|
||||
# Prompt the user to log in to Azure
|
||||
print("You are not logged in to Azure. Please log in to continue.")
|
||||
subprocess.run("az login", shell=True) # noqa: PLW1510
|
||||
|
||||
# Publish the package to Azure Artifacts if --no-upload is not specified
|
||||
|
||||
cmd = f'az artifacts universal publish --organization https://dev.azure.com/onnxruntime --feed onnxruntime --name {package_name} --version {version} --description "onnxruntime build time dependencies" --path {root_path}'
|
||||
if args.do_upload:
|
||||
subprocess.run(cmd, shell=True) # noqa: PLW1510
|
||||
else:
|
||||
print("would have run: " + cmd)
|
||||
|
||||
cmd = f'az artifacts universal publish --organization https://dev.azure.com/aiinfra --feed Lotus --name {package_name} --version {version} --description "onnxruntime build time dependencies" --path {root_path}'
|
||||
if args.do_upload:
|
||||
subprocess.run(cmd, shell=True) # noqa: PLW1510
|
||||
else:
|
||||
print("would have run: " + cmd)
|
||||
|
|
@ -11,7 +11,7 @@ steps:
|
|||
packageType: upack
|
||||
feed: '/7424c8e4-5c62-490e-95c4-79446f31017c'
|
||||
definition: '517c4f6f-5437-4392-a70d-4f15ec5be2f0'
|
||||
version: 1.0.77
|
||||
version: 1.0.111
|
||||
downloadPath: $(Build.BinariesDirectory)/deps
|
||||
|
||||
# The private ADO project
|
||||
|
|
@ -22,7 +22,7 @@ steps:
|
|||
packageType: upack
|
||||
feed: '/4c7631f5-24c0-4307-8822-1aa8f180c325'
|
||||
definition: 'fd9dd5ad-b73e-4678-890e-edcf680dbc1a'
|
||||
version: 1.0.77
|
||||
version: 1.0.111
|
||||
downloadPath: $(Build.BinariesDirectory)/deps
|
||||
|
||||
# You can add more ADO accounts at here.
|
||||
|
|
|
|||
Loading…
Reference in a new issue