Skip to content

Update onnxruntime_backend after 24.10 #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 1, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions tools/gen_ort_dockerfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
"2024.1", # OpenVINO short version
"2024.1.0.15008.f4afc983258", # OpenVINO version with build number
),
"2024.4.0": (
"2024.4", # OpenVINO short version
"2024.4.0.16579.c3152d32c9c", # OpenVINO version with build number
),
}


Expand Down Expand Up @@ -354,6 +358,8 @@ def dockerfile_for_linux(output_file):
RUN cp /workspace/onnxruntime/include/onnxruntime/core/providers/openvino/openvino_provider_factory.h \
/opt/onnxruntime/include

RUN apt-get update && apt-get install -y --no-install-recommends libtbb2

RUN cp /workspace/build/${ONNXRUNTIME_BUILD_CONFIG}/libonnxruntime_providers_openvino.so \
/opt/onnxruntime/lib && \
cp ${INTEL_OPENVINO_DIR}/runtime/lib/intel64/libopenvino.so.${ONNXRUNTIME_OPENVINO_VERSION} \
Expand All @@ -366,7 +372,7 @@ def dockerfile_for_linux(output_file):
/opt/onnxruntime/lib && \
cp ${INTEL_OPENVINO_DIR}/runtime/lib/intel64/libopenvino_onnx_frontend.so.${ONNXRUNTIME_OPENVINO_VERSION} \
/opt/onnxruntime/lib && \
cp /usr/lib/x86_64-linux-gnu/libtbb.so.12 /opt/onnxruntime/lib
cp /usr/lib/x86_64-linux-gnu/libtbb.so.* /opt/onnxruntime/lib

RUN OV_SHORT_VERSION=`echo ${ONNXRUNTIME_OPENVINO_VERSION} | awk '{ split($0,a,"."); print substr(a[1],3) a[2] a[3] }'` && \
(cd /opt/onnxruntime/lib && \
Expand Down Expand Up @@ -441,7 +447,9 @@ def dockerfile_for_windows(output_file):
ARG ONNXRUNTIME_VERSION
ARG ONNXRUNTIME_REPO
RUN git clone -b rel-%ONNXRUNTIME_VERSION% --recursive %ONNXRUNTIME_REPO% onnxruntime && \
(cd onnxruntime && git submodule update --init --recursive)
cd onnxruntime && git submodule update --init --recursive && \
git config --global user.email "[email protected]" && git config --global user.name "Your Name" && \
git cherry-pick 709368ea1443dc1ff68dece31d692ad065fb94d4
"""

if FLAGS.onnx_tensorrt_tag != "":
Expand Down Expand Up @@ -655,4 +663,4 @@ def preprocess_gpu_flags():
FLAGS.ort_openvino = None
dockerfile_for_windows(FLAGS.output)
else:
dockerfile_for_linux(FLAGS.output)
dockerfile_for_linux(FLAGS.output)
Loading