mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Stop publishing python 3.8/3.9 packages (#22343)
### Description 1. Stop publishing python 3.8/3.9 packages, to align with numpy. 2. Add a trigger for CUDA12's python test pipeline.
This commit is contained in:
parent
cc0193cd42
commit
d98340968e
6 changed files with 7 additions and 91 deletions
|
|
@ -1,21 +1,9 @@
|
|||
parameters:
|
||||
- name: build_id
|
||||
type: string
|
||||
default: 'latest'
|
||||
- name: project
|
||||
type: string
|
||||
default: 'Lotus'
|
||||
- name: pipeline
|
||||
type: string
|
||||
default: 'Python-CUDA-Packaging-Pipeline'
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: manylinux
|
||||
type: Github
|
||||
endpoint: Microsoft
|
||||
name: pypa/manylinux
|
||||
ref: 5eda9aded5462201e6310105728d33016e637ea7
|
||||
pipelines:
|
||||
- pipeline: build
|
||||
source: 'Python-CUDA-Packaging-Pipeline'
|
||||
trigger: true
|
||||
branch: main # branch to pick the artifact, Used only for manual triggered pipeline runs for testing the pipeline itself
|
||||
|
||||
stages:
|
||||
# ****The following Stage depend on all previous tags. ***
|
||||
|
|
|
|||
|
|
@ -22,10 +22,6 @@ jobs:
|
|||
${{ parameters.machine_pool }}
|
||||
strategy:
|
||||
matrix:
|
||||
Python38:
|
||||
PythonVersion: '3.8'
|
||||
Python39:
|
||||
PythonVersion: '3.9'
|
||||
Python310:
|
||||
PythonVersion: '3.10'
|
||||
Python311:
|
||||
|
|
|
|||
|
|
@ -84,14 +84,6 @@ stages:
|
|||
pool: 'onnxruntime-Win-CPU-2022'
|
||||
strategy:
|
||||
matrix:
|
||||
Python38_x64:
|
||||
PythonVersion: '3.8'
|
||||
MsbuildPlatform: x64
|
||||
buildArch: x64
|
||||
Python39_x64:
|
||||
PythonVersion: '3.9'
|
||||
MsbuildPlatform: x64
|
||||
buildArch: x64
|
||||
Python310_x64:
|
||||
PythonVersion: '3.10'
|
||||
MsbuildPlatform: x64
|
||||
|
|
@ -107,14 +99,6 @@ stages:
|
|||
# Training build cannot support Win32 for now because one or more of its python
|
||||
# dependencies does not support Win32. So, don't build a training package for Win32
|
||||
${{ if not(contains(parameters.build_py_parameters, '--enable_training')) }}:
|
||||
Python38_x86:
|
||||
PythonVersion: '3.8'
|
||||
MsbuildPlatform: Win32
|
||||
buildArch: x86
|
||||
Python39_x86:
|
||||
PythonVersion: '3.9'
|
||||
MsbuildPlatform: Win32
|
||||
buildArch: x86
|
||||
Python310_x86:
|
||||
PythonVersion: '3.10'
|
||||
MsbuildPlatform: Win32
|
||||
|
|
@ -294,26 +278,6 @@ stages:
|
|||
condition: always()
|
||||
|
||||
- ${{ if eq(parameters.enable_windows_gpu, true) }}:
|
||||
- template: py-win-gpu.yml
|
||||
parameters:
|
||||
MACHINE_POOL: 'onnxruntime-Win2022-GPU-A10'
|
||||
PYTHON_VERSION: '3.8'
|
||||
EP_BUILD_FLAGS: --use_tensorrt --tensorrt_home="$(Agent.TempDirectory)\TensorRT-10.4.0.26.Windows10.x86_64.cuda-11.8" --cuda_home="$(Agent.TempDirectory)\v11.8" --cmake_extra_defines "CMAKE_CUDA_ARCHITECTURES=52;60;61;70;75;80"
|
||||
ENV_SETUP_SCRIPT: setup_env_gpu.bat
|
||||
EP_NAME: gpu
|
||||
publish_symbols: ${{ parameters.publish_symbols }}
|
||||
cmake_build_type: ${{ parameters.cmake_build_type }}
|
||||
|
||||
- template: py-win-gpu.yml
|
||||
parameters:
|
||||
MACHINE_POOL: 'onnxruntime-Win2022-GPU-A10'
|
||||
PYTHON_VERSION: '3.9'
|
||||
EP_BUILD_FLAGS: --use_tensorrt --tensorrt_home="$(Agent.TempDirectory)\TensorRT-10.4.0.26.Windows10.x86_64.cuda-11.8" --cuda_home="$(Agent.TempDirectory)\v11.8" --cmake_extra_defines "CMAKE_CUDA_ARCHITECTURES=52;60;61;70;75;80"
|
||||
ENV_SETUP_SCRIPT: setup_env_gpu.bat
|
||||
EP_NAME: gpu
|
||||
publish_symbols: ${{ parameters.publish_symbols }}
|
||||
cmake_build_type: ${{ parameters.cmake_build_type }}
|
||||
|
||||
- template: py-win-gpu.yml
|
||||
parameters:
|
||||
MACHINE_POOL: 'onnxruntime-Win2022-GPU-A10'
|
||||
|
|
@ -344,26 +308,6 @@ stages:
|
|||
publish_symbols: ${{ parameters.publish_symbols }}
|
||||
cmake_build_type: ${{ parameters.cmake_build_type }}
|
||||
|
||||
- template: py-win-gpu.yml
|
||||
parameters:
|
||||
MACHINE_POOL: 'onnxruntime-Win2022-GPU-dml-A10'
|
||||
PYTHON_VERSION: '3.8'
|
||||
EP_BUILD_FLAGS: --use_dml --cmake_extra_defines CMAKE_SYSTEM_VERSION=10.0.18362.0 --enable_wcos
|
||||
ENV_SETUP_SCRIPT: setup_env.bat
|
||||
EP_NAME: directml
|
||||
publish_symbols: ${{ parameters.publish_symbols }}
|
||||
cmake_build_type: ${{ parameters.cmake_build_type }}
|
||||
|
||||
- template: py-win-gpu.yml
|
||||
parameters:
|
||||
MACHINE_POOL: 'onnxruntime-Win2022-GPU-dml-A10'
|
||||
PYTHON_VERSION: '3.9'
|
||||
EP_BUILD_FLAGS: --use_dml --cmake_extra_defines CMAKE_SYSTEM_VERSION=10.0.18362.0 --enable_wcos
|
||||
ENV_SETUP_SCRIPT: setup_env.bat
|
||||
EP_NAME: directml
|
||||
publish_symbols: ${{ parameters.publish_symbols }}
|
||||
cmake_build_type: ${{ parameters.cmake_build_type }}
|
||||
|
||||
- template: py-win-gpu.yml
|
||||
parameters:
|
||||
MACHINE_POOL: 'onnxruntime-Win2022-GPU-dml-A10'
|
||||
|
|
@ -408,10 +352,6 @@ stages:
|
|||
MACOSX_DEPLOYMENT_TARGET: '13.3'
|
||||
strategy:
|
||||
matrix:
|
||||
Python38:
|
||||
PythonVersion: '3.8'
|
||||
Python39:
|
||||
PythonVersion: '3.9'
|
||||
Python310:
|
||||
PythonVersion: '3.10'
|
||||
Python311:
|
||||
|
|
|
|||
|
|
@ -28,10 +28,6 @@ jobs:
|
|||
name: ${{ parameters.MACHINE_POOL }}
|
||||
strategy:
|
||||
matrix:
|
||||
Python38_x64:
|
||||
PythonVersion: '3.8'
|
||||
Python39_x64:
|
||||
PythonVersion: '3.9'
|
||||
Python310_x64:
|
||||
PythonVersion: '3.10'
|
||||
Python311_x64:
|
||||
|
|
|
|||
|
|
@ -28,10 +28,6 @@ jobs:
|
|||
name: ${{ parameters.MACHINE_POOL }}
|
||||
strategy:
|
||||
matrix:
|
||||
Python38_x64:
|
||||
PythonVersion: '3.8'
|
||||
Python39_x64:
|
||||
PythonVersion: '3.9'
|
||||
Python310_x64:
|
||||
PythonVersion: '3.10'
|
||||
Python311_x64:
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ mkdir -p /build/dist
|
|||
|
||||
EXTRA_ARG=""
|
||||
|
||||
# Put 3.8 at the last because Ubuntu 22.04 use python 3.10 and we will upload the intermediate build files of this
|
||||
# Put 3.10 at the last because Ubuntu 22.04 use python 3.10 and we will upload the intermediate build files of this
|
||||
# config to Azure DevOps Artifacts and download them to a Ubuntu 22.04 machine to run the tests.
|
||||
PYTHON_EXES=("/opt/python/cp38-cp38/bin/python3.8" "/opt/python/cp39-cp39/bin/python3.9" "/opt/python/cp311-cp311/bin/python3.11" "/opt/python/cp312-cp312/bin/python3.12" "/opt/python/cp310-cp310/bin/python3.10")
|
||||
PYTHON_EXES=("/opt/python/cp311-cp311/bin/python3.11" "/opt/python/cp312-cp312/bin/python3.12" "/opt/python/cp310-cp310/bin/python3.10")
|
||||
while getopts "d:p:x:c:" parameter_Option
|
||||
do case "${parameter_Option}"
|
||||
in
|
||||
|
|
|
|||
Loading…
Reference in a new issue