From fa4dd842ea854637064aed08d277bf7565e05c39 Mon Sep 17 00:00:00 2001 From: yf711 Date: Thu, 5 Dec 2024 09:40:32 -0800 Subject: [PATCH] adapt https://github.com/microsoft/onnxruntime/pull/19052#issuecomment-1888066851 --- tools/ci_build/github/linux/build_tensorrt_ci.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/ci_build/github/linux/build_tensorrt_ci.sh b/tools/ci_build/github/linux/build_tensorrt_ci.sh index 6101fd4ef50d0..a7f1c351818a5 100755 --- a/tools/ci_build/github/linux/build_tensorrt_ci.sh +++ b/tools/ci_build/github/linux/build_tensorrt_ci.sh @@ -26,8 +26,11 @@ BUILD_ARGS=('--config' 'Release' for arg in "$@"; do case $arg in --cuda_minimal=ON) + # Replace onnxruntime_BUILD_UNIT_TESTS=ON with OFF + BUILD_ARGS=("${BUILD_ARGS[@]/onnxruntime_BUILD_UNIT_TESTS=ON/onnxruntime_BUILD_UNIT_TESTS=OFF}") BUILD_ARGS+=("onnxruntime_CUDA_MINIMAL=ON") BUILD_ARGS+=("onnxruntime_DISABLE_CONTRIB_OPS=ON") + BUILD_ARGS+=("--skip_tests") ;; esac done