From 439ed92b96f5ad75f3674ba228be49ac18107156 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Sat, 25 May 2024 20:42:41 -0700 Subject: [PATCH] Remove TVM EP's pipeline (#20813) ### Description Temporarily remove TVM EP's pipeline until someone helps us upgrade TVM to a newer version which is compatible with the latest ONNX. ### Motivation and Context The ONNX version that TVM EP uses has a known security vulnerability. We cannot continue using it in our hosted build environment. This change is temporary --- .github/workflows/linux.yml | 32 ----------------- .github/workflows/windows.yml | 36 +------------------ .../github/linux/tvm/requirements.txt | 14 -------- 3 files changed, 1 insertion(+), 81 deletions(-) delete mode 100644 .github/workflows/linux.yml delete mode 100644 tools/ci_build/github/linux/tvm/requirements.txt diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml deleted file mode 100644 index 6e81a06947150..0000000000000 --- a/.github/workflows/linux.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Linux_CI -on: - push: - branches: - - main - - rel-* - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - Onnxruntime-TVM: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - uses: actions/setup-python@v5 - with: - python-version: '3.8.x' - architecture: 'x64' - - name: 'Setup TVM EP requirements' - run: | - set -e -x - sudo apt-get update - sudo apt-get install -y libtinfo-dev zlib1g-dev build-essential libedit-dev libxml2-dev nasm - python3 -m pip install -r ${{ github.workspace }}/tools/ci_build/github/linux/tvm/requirements.txt - - name: 'Build and Test' - run: | - python3 ${{ github.workspace }}/tools/ci_build/build.py --build_dir build --config Release --skip_submodule_sync --parallel --enable_pybind --disable_contrib_ops --disable_ml_ops --skip_onnx_tests --use_tvm --use_tvm_hash --ctest_path "" diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 7a6038ff2c2a8..b77e48942ec44 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -41,38 +41,4 @@ jobs: # The build machine doesn't have a GPU. So the value of CMAKE_CUDA_ARCHITECTURES doesn't matter. - name: Build code - run: python tools\ci_build\build.py --windows_sdk_version 10.0.22621.0 --enable_training --build_java --config Debug --build_dir D:\b --skip_submodule_sync --build_csharp --update --build --parallel --cmake_generator "Visual Studio 17 2022" --build_shared_lib --enable_pybind --use_cuda --cuda_home=${{ github.workspace }}\cuda_sdk\v12.2 --enable_cuda_profiling --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=75 - - Onnxruntime-TVM: - runs-on: windows-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - uses: conda-incubator/setup-miniconda@v3 - with: - activate-environment: "ort_build" - python-version: 3.8 - - name: 'Install LLVM-Dev' - shell: pwsh - run: | - conda install llvmdev=12.0.0 - conda info - conda list - - name: 'Add LLVM-Dev binaries to the PATH' - run: | - echo "C:/Miniconda/Library/bin" >> $GITHUB_PATH - - name: 'Setup TVM EP Python requirements' - run: | - python3 -m pip install -r ${{ github.workspace }}/tools/ci_build/github/linux/tvm/requirements.txt - - name: 'rm gtest in conda' - shell: pwsh - run: | - Remove-Item 'C:\Miniconda\Library\lib\cmake\gtest' -Recurse -Force - Remove-Item 'C:\Miniconda\Library\lib\gmock.lib' -Force - Remove-Item 'C:\Miniconda\Library\lib\gmock_main.lib' -Force - Remove-Item 'C:\Miniconda\Library\lib\gtest.lib' -Force - Remove-Item 'C:\Miniconda\Library\lib\gtest_main.lib' -Force - - name: 'Build and Test' - run: | - python3 ${{ github.workspace }}/tools/ci_build/build.py --build_dir build --config Release --skip_submodule_sync --parallel --enable_pybind --disable_contrib_ops --disable_ml_ops --skip_onnx_tests --use_tvm + run: python tools\ci_build\build.py --windows_sdk_version 10.0.22621.0 --enable_training --build_java --config Debug --build_dir D:\b --skip_submodule_sync --build_csharp --update --build --parallel --cmake_generator "Visual Studio 17 2022" --build_shared_lib --enable_pybind --use_cuda --cuda_home=${{ github.workspace }}\cuda_sdk\v12.2 --enable_cuda_profiling --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=75 diff --git a/tools/ci_build/github/linux/tvm/requirements.txt b/tools/ci_build/github/linux/tvm/requirements.txt deleted file mode 100644 index 52dccb5adbb6f..0000000000000 --- a/tools/ci_build/github/linux/tvm/requirements.txt +++ /dev/null @@ -1,14 +0,0 @@ -numpy -decorator -scipy -wheel -setuptools -onnx==1.11.0 -protobuf==3.20.2 -flatbuffers -tornado -psutil -xgboost -cloudpickle -pytest -attrs