From e464588a0e1be83cff7d61bfddca4a2d62a48520 Mon Sep 17 00:00:00 2001 From: Baiju Meswani Date: Wed, 3 May 2023 19:09:07 -0700 Subject: [PATCH] Avoid generating training documentation during packaging (#15795) --- .../github/azure-pipelines/templates/rocm.yml | 35 ------------------- .../pai/wrap_rocm_python_doc_publisher.sh | 7 ---- 2 files changed, 42 deletions(-) delete mode 100755 tools/ci_build/github/pai/wrap_rocm_python_doc_publisher.sh diff --git a/tools/ci_build/github/azure-pipelines/templates/rocm.yml b/tools/ci_build/github/azure-pipelines/templates/rocm.yml index 3213a8aa1f..73fbd43af2 100644 --- a/tools/ci_build/github/azure-pipelines/templates/rocm.yml +++ b/tools/ci_build/github/azure-pipelines/templates/rocm.yml @@ -118,41 +118,6 @@ jobs: Contents: "${{ parameters.BuildConfig }}/dist/*.whl" TargetFolder: '$(Build.ArtifactStagingDirectory)' - - task: CmdLine@2 - displayName: 'Build Python Documentation' - condition: and(succeeded(), ne('${{ parameters.PythonVersion }}', '3.9'), eq('${{ parameters.BuildConfig }}', 'Release')) # tensorflow not available on python 3.9 - inputs: - script: | - mkdir -p $HOME/.onnx - docker run --rm \ - --device=/dev/kfd \ - --device=/dev/dri \ - --group-add $(video) \ - --group-add $(render) \ - --privileged \ - --ipc=host \ - --network=host \ - --cap-add=SYS_PTRACE \ - --security-opt seccomp=unconfined \ - --volume $(Build.SourcesDirectory):/onnxruntime_src \ - --volume $(Build.BinariesDirectory):/build \ - --entrypoint /bin/bash \ - -e HIP_VISIBLE_DEVICES \ - -e NIGHTLY_BUILD \ - -e BUILD_BUILDNUMBER \ - -e PythonManylinuxDir=$(PythonManylinuxdir) \ - onnxruntimetrainingrocmbuild-rocm${{ parameters.RocmVersion }} \ - /onnxruntime_src/tools/ci_build/github/pai/wrap_rocm_python_doc_publisher.sh - workingDirectory: $(Build.SourcesDirectory) - - - task: CopyFiles@2 - displayName: 'Copy Python Documentation to: $(Build.ArtifactStagingDirectory)' - condition: and(succeeded(), ne('${{ parameters.PythonVersion }}', '3.9'), eq('${{ parameters.BuildConfig }}', 'Release')) # tensorflow not available on python 3.9 - inputs: - SourceFolder: '$(Build.BinariesDirectory)/docs/training/html' - Contents: '**' - TargetFolder: '$(Build.ArtifactStagingDirectory)/training_html_doc' - - task: PublishBuildArtifacts@1 displayName: 'Upload Rocm wheel as build artifact' inputs: diff --git a/tools/ci_build/github/pai/wrap_rocm_python_doc_publisher.sh b/tools/ci_build/github/pai/wrap_rocm_python_doc_publisher.sh deleted file mode 100755 index 6182bff85d..0000000000 --- a/tools/ci_build/github/pai/wrap_rocm_python_doc_publisher.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -echo "HIP_VISIBLE_DEVICES=$HIP_VISIBLE_DEVICES" -echo "PythonManylinuxDir=$PythonManylinuxDir" - -$PythonManylinuxDir/bin/python3 -m pip install /build/Release/dist/*.whl -/onnxruntime_src/tools/ci_build/github/pai/buildtrainingdoc.sh $PythonManylinuxDir/bin/ /onnxruntime_src /build Release