From 462b3a557a7b262751be33c8bb9648f2fa8657a8 Mon Sep 17 00:00:00 2001 From: Misha Chornyi <99709299+mc-nv@users.noreply.github.com> Date: Wed, 11 Jun 2025 11:44:43 -0700 Subject: [PATCH 1/2] Include commit to support respective TRT version (#306) * Include missed commit * Adding required changes to the build. * Update tools/gen_ort_dockerfile.py Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com> --------- Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com> --- tools/gen_ort_dockerfile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/gen_ort_dockerfile.py b/tools/gen_ort_dockerfile.py index 160c4ff..33845cb 100755 --- a/tools/gen_ort_dockerfile.py +++ b/tools/gen_ort_dockerfile.py @@ -275,8 +275,10 @@ def dockerfile_for_linux(output_file): ARG ONNXRUNTIME_REPO ARG ONNXRUNTIME_BUILD_CONFIG -RUN git clone -b rel-${ONNXRUNTIME_VERSION} --recursive ${ONNXRUNTIME_REPO} onnxruntime && \ - (cd onnxruntime && git submodule update --init --recursive) +# Cherry-pick commit: https://github.com/microsoft/onnxruntime/commit/9dad9af9f9b48c05814d0c2d067d0565e8da6ce8 +RUN git clone -b rel-${ONNXRUNTIME_VERSION} --recursive ${ONNXRUNTIME_REPO} onnxruntime \\ + && cd onnxruntime \\ + && git cherry-pick -n 9dad9af9f9b48c05814d0c2d067d0565e8da6ce8 """ if FLAGS.onnx_tensorrt_tag != "": From 4801ce09e71bd69dbc0cfa508467f2599486d2f8 Mon Sep 17 00:00:00 2001 From: Misha Chornyi Date: Tue, 17 Jun 2025 16:21:41 -0700 Subject: [PATCH 2/2] Addressing file upstream checksum change --- tools/gen_ort_dockerfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/gen_ort_dockerfile.py b/tools/gen_ort_dockerfile.py index 33845cb..67c7fa8 100755 --- a/tools/gen_ort_dockerfile.py +++ b/tools/gen_ort_dockerfile.py @@ -278,7 +278,8 @@ def dockerfile_for_linux(output_file): # Cherry-pick commit: https://github.com/microsoft/onnxruntime/commit/9dad9af9f9b48c05814d0c2d067d0565e8da6ce8 RUN git clone -b rel-${ONNXRUNTIME_VERSION} --recursive ${ONNXRUNTIME_REPO} onnxruntime \\ && cd onnxruntime \\ - && git cherry-pick -n 9dad9af9f9b48c05814d0c2d067d0565e8da6ce8 + && git cherry-pick -n 9dad9af9f9b48c05814d0c2d067d0565e8da6ce8 \\ + && sed -i 's/5ea4d05e62d7f954a46b3213f9b2535bdd866803/51982be81bbe52572b54180454df11a3ece9a934/g' cmake/deps.txt """ if FLAGS.onnx_tensorrt_tag != "":