[QNN EP] Build Python 3.12 wheel for Windows ARM64 (#22118)

### Description
Builds arm64 python 3.12 wheel for QNN EP.


### Motivation and Context
This commit is contained in:
Adrian Lizarraga 2024-09-17 21:16:31 -07:00 committed by GitHub
parent c6dc787a3d
commit b8dae685e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 13 deletions

View file

@ -512,7 +512,6 @@ stages:
parameters:
MACHINE_POOL: 'onnxruntime-qnn-windows-vs-2022-arm64'
QNN_SDK: ${{ parameters.qnn_sdk_version }}
PYTHON_VERSION: '3.11'
BUILD_PY_PARAMETERS: ${{ parameters.build_py_parameters }}
- ${{ if eq(parameters.enable_windows_arm64ec_qnn, true) }}:

View file

@ -9,10 +9,6 @@ parameters:
type: string
default: 2.26.0.240828
- name: PYTHON_VERSION
type: string
default: '3.11'
- name: ENV_SETUP_SCRIPT
type: string
default: ''
@ -24,12 +20,20 @@ parameters:
default: ''
jobs:
- job: Win_py_arm64_qnn_Wheels_${{ replace(parameters.PYTHON_VERSION,'.','_') }}
- job: Win_py_arm64_qnn_Wheels
timeoutInMinutes: 210
workspace:
clean: all
pool:
name: ${{ parameters.MACHINE_POOL }}
strategy:
matrix:
Python311_arm64:
PythonVersion: '3.11.0'
LocalPythonDir: 'C:\Python\Python311'
Python312_arm64:
PythonVersion: '3.12.6'
LocalPythonDir: 'C:\Python\Python312'
variables:
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
VSGenerator: 'Visual Studio 17 2022'
@ -41,17 +45,17 @@ jobs:
- template: telemetry-steps.yml
- 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
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\3.11.0
DIR $(Agent.ToolsDirectory)\Python\3.11.0\arm64
displayName: Copy python 3.11.0 version to agent tools directory
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: ${{ parameters.PYTHON_VERSION }}
versionSpec: $(PythonVersion)
addToPath: true
architecture: 'arm64'