Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,21 @@ stages:
MACHINE_POOL: 'onnxruntime-qnn-windows-vs-2022-arm64'
QNN_SDK: ${{ parameters.qnn_sdk_version }}
BUILD_PY_PARAMETERS: ${{ parameters.build_py_parameters }}
is1ES: true
PYTHON_VERSION: '3.11'

- template: ../templates/py-win-arm64-qnn.yml
parameters:
MACHINE_POOL: 'onnxruntime-qnn-windows-vs-2022-arm64'
QNN_SDK: ${{ parameters.qnn_sdk_version }}
BUILD_PY_PARAMETERS: ${{ parameters.build_py_parameters }}
PYTHON_VERSION: '3.12'

- template: ../templates/py-win-arm64-qnn.yml
parameters:
MACHINE_POOL: 'onnxruntime-qnn-windows-vs-2022-arm64'
QNN_SDK: ${{ parameters.qnn_sdk_version }}
BUILD_PY_PARAMETERS: ${{ parameters.build_py_parameters }}
PYTHON_VERSION: '3.13'

- ${{ if eq(parameters.enable_windows_arm64ec_qnn, true) }}:
- stage: Python_Packaging_Windows_arm64ec_QNN
Expand All @@ -327,7 +341,6 @@ stages:
MACHINE_POOL: 'Onnxruntime-QNNEP-Windows-2022-CPU'
QNN_SDK: ${{ parameters.qnn_sdk_version }}
BUILD_PY_PARAMETERS: ${{ parameters.build_py_parameters }}
is1ES: true

- ${{ if eq(parameters.enable_windows_x64_qnn, true) }}:
- stage: Python_Packaging_Windows_x64_QNN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ parameters:
type: string
default: 'onnxruntime-qnn-windows-vs-2022-arm64'

- name: PYTHON_VERSION
type: string
default: '3.11'

- name: QNN_SDK
displayName: QNN SDK Version
type: string
Expand All @@ -19,13 +23,8 @@ parameters:
type: string
default: ''

- name: is1ES
displayName: 'Whether the pipeline is running in 1ES'
type: boolean
default: false

jobs:
- job: Win_py_arm64_qnn_Wheels
- job: Win_py_arm64_qnn_Wheels_${{ replace(parameters.PYTHON_VERSION,'.','_') }}
timeoutInMinutes: 210
workspace:
clean: all
Expand All @@ -48,41 +47,21 @@ jobs:
outputs:
- output: pipelineArtifact
targetPath: $(Build.ArtifactStagingDirectory)
artifactName: onnxruntime_qnn_arm64_$(PythonVersion)

strategy:
matrix:
Python311_arm64:
PythonVersion: '3.11.0'
LocalPythonDir: 'C:\Python\Python311'
Python312_arm64:
PythonVersion: '3.12.6'
LocalPythonDir: 'C:\Python\Python312'
Python313_arm64:
PythonVersion: '3.13.2'
LocalPythonDir: 'C:\Python\Python313'
artifactName: onnxruntime_qnn_arm64_${{ parameters.PYTHON_VERSION }}

variables:
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
VSGenerator: 'Visual Studio 17 2022'
steps:
- checkout: self
clean: true
submodules: recursive
submodules: none

- template: telemetry-steps.yml

- script: |
MKDIR $(Agent.ToolsDirectory)\Python\$(PythonVersion)\arm64
XCOPY /s /y /h /e /c /q "$(LocalPythonDir)\*.*" $(Agent.ToolsDirectory)\Python\$(PythonVersion)\arm64\
COPY NUL $(Agent.ToolsDirectory)\Python\$(PythonVersion)\arm64.complete
DIR $(Agent.ToolsDirectory)\Python
DIR $(Agent.ToolsDirectory)\Python\$(PythonVersion)
DIR $(Agent.ToolsDirectory)\Python\$(PythonVersion)\arm64
displayName: Copy python $(PythonVersion) version to agent tools directory

- task: UsePythonVersion@0
inputs:
versionSpec: $(PythonVersion)
versionSpec: ${{ parameters.PYTHON_VERSION }}
addToPath: true
architecture: 'arm64'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ parameters:
type: string
default: ''

- name: is1ES
displayName: 'Whether the pipeline is running in 1ES'
type: boolean
default: false

jobs:
- job: Win_py_x64_qnn_Wheels
timeoutInMinutes: 210
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,6 @@ jobs:
# because the python bindings also use the USE_<EP>_PROVIDER_INTERFACE preprocessor macros.
ExtraQnnBuildArgs: '--enable_generic_interface --build_wheel'
steps:

- script: |
MKDIR $(Agent.ToolsDirectory)\Python\3.11.0\arm64
XCOPY /s /y /h /e /c /q "C:\Python\Python311\*.*" $(Agent.ToolsDirectory)\Python\3.11.0\arm64\
COPY NUL $(Agent.ToolsDirectory)\Python\3.11.0\arm64.complete
DIR $(Agent.ToolsDirectory)\Python
DIR $(Agent.ToolsDirectory)\Python\3.11.0
DIR $(Agent.ToolsDirectory)\Python\3.11.0\arm64
displayName: Copy python 3.11.0 version to agent tools directory

- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
Expand Down
Loading