From db2d590a3e9a0594fccec59dfd3b3acbc078043a Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Thu, 6 Feb 2025 15:33:30 -0800 Subject: [PATCH] update --- tools/ci_build/github/linux/build_cuda_ci.sh | 1 + .../github/linux/build_tensorrt_ci.sh | 22 +++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/tools/ci_build/github/linux/build_cuda_ci.sh b/tools/ci_build/github/linux/build_cuda_ci.sh index d74907afdc..2596047827 100755 --- a/tools/ci_build/github/linux/build_cuda_ci.sh +++ b/tools/ci_build/github/linux/build_cuda_ci.sh @@ -10,6 +10,7 @@ BUILD_ARGS=('--config' '--skip_submodule_sync' '--build_shared_lib' '--parallel' + '--use_vcpkg' '--use_binskim_compliant_compile_flags' '--build_wheel' '--enable_onnx_tests' diff --git a/tools/ci_build/github/linux/build_tensorrt_ci.sh b/tools/ci_build/github/linux/build_tensorrt_ci.sh index ef666c902c..86351da0ae 100755 --- a/tools/ci_build/github/linux/build_tensorrt_ci.sh +++ b/tools/ci_build/github/linux/build_tensorrt_ci.sh @@ -7,20 +7,20 @@ SHORT_CUDA_VERSION=$(echo $CUDA_VERSION | sed 's/\([[:digit:]]\+\.[[:digit:]]\ BUILD_ARGS=('--config' 'Release' '--skip_submodule_sync' '--build_shared_lib' - '--parallel' '--use_binskim_compliant_compile_flags' + '--parallel' '--use_vcpkg' '--use_binskim_compliant_compile_flags' '--build_wheel' '--enable_onnx_tests' - '--use_cuda' - "--cuda_version=$SHORT_CUDA_VERSION" - "--cuda_home=/usr/local/cuda-$SHORT_CUDA_VERSION" - "--cudnn_home=/usr/local/cuda-$SHORT_CUDA_VERSION" - "--use_tensorrt" "--tensorrt_home" "/usr" + '--use_cuda' + "--cuda_version=$SHORT_CUDA_VERSION" + "--cuda_home=/usr/local/cuda-$SHORT_CUDA_VERSION" + "--cudnn_home=/usr/local/cuda-$SHORT_CUDA_VERSION" + "--use_tensorrt" "--tensorrt_home" "/usr" "--enable_pybind" - "--build_java" + "--build_java" "--cmake_extra_defines" - "CMAKE_CUDA_ARCHITECTURES=75" - "onnxruntime_BUILD_UNIT_TESTS=ON" - "onnxruntime_ENABLE_CUDA_EP_INTERNAL_TESTS=ON") + "CMAKE_CUDA_ARCHITECTURES=75" + "onnxruntime_BUILD_UNIT_TESTS=ON" + "onnxruntime_ENABLE_CUDA_EP_INTERNAL_TESTS=ON") # Parse external args for arg in "$@"; do @@ -53,7 +53,7 @@ if [ -f /opt/python/cp312-cp312/bin/python3 ]; then else python3 tools/ci_build/build.py "${BUILD_ARGS[@]}" fi -if [ -x "$(command -v ccache)" ]; then +if [ -x "$(command -v ccache)" ]; then ccache -sv ccache -z fi