Skip to content

Commit

Permalink
fix python qnn pipelines issues (#21462)
Browse files Browse the repository at this point in the history
build_py_params wasn't plumbed through for python qnn pipelines. 
incorporate fixes for deprecated numpy version option from
#21459
  • Loading branch information
jywu-msft authored Jul 23, 2024
1 parent 2b7e2a5 commit c65afce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ stages:
MACHINE_POOL: 'onnxruntime-qnn-windows-vs-2022-arm64'
QNN_SDK: ${{ parameters.qnn_sdk_version }}
PYTHON_VERSION: '3.11'
NUMPY_VERSION: '1.26.4'
BUILD_PY_PARAMETERS: ${{ parameters.build_py_parameters }}

- ${{ if eq(parameters.enable_windows_x64_qnn, true) }}:
- stage: Python_Packaging_Windows_x64_QNN
Expand All @@ -520,3 +520,4 @@ stages:
parameters:
MACHINE_POOL: 'Onnxruntime-QNNEP-Windows-2022-CPU'
QNN_SDK: ${{ parameters.qnn_sdk_version }}
BUILD_PY_PARAMETERS: ${{ parameters.build_py_parameters }}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ parameters:
type: string
default: '3.11'

- name: NUMPY_VERSION
type: string
default: '1.26.4'

- name: ENV_SETUP_SCRIPT
type: string
default: ''
Expand Down Expand Up @@ -70,7 +66,7 @@ jobs:
scriptSource: inline
script: |
import subprocess
subprocess.call(['pip', 'install', '-q', 'setuptools', 'wheel', 'numpy==${{parameters.NUMPY_VERSION}}'])
subprocess.call(['pip', 'install', '-q', 'setuptools', 'wheel'])
workingDirectory: '$(Build.BinariesDirectory)'
displayName: 'Install python modules'

Expand All @@ -93,7 +89,6 @@ jobs:
--qnn_home $(QnnSDKRootDir)
--enable_pybind
--parallel --update
--numpy_version ${{ parameters.NUMPY_VERSION }}
$(TelemetryOption) ${{ parameters.BUILD_PY_PARAMETERS }}
workingDirectory: '$(Build.BinariesDirectory)'

Expand Down Expand Up @@ -121,7 +116,7 @@ jobs:
displayName: 'Build wheel'
inputs:
scriptPath: '$(Build.SourcesDirectory)\setup.py'
arguments: 'bdist_wheel ${{ parameters.BUILD_PY_PARAMETERS }} $(NightlyBuildOption) --wheel_name_suffix=qnn'
arguments: 'bdist_wheel $(NightlyBuildOption) --wheel_name_suffix=qnn'
workingDirectory: '$(Build.BinariesDirectory)\RelWithDebInfo\RelWithDebInfo'

- task: CopyFiles@2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
displayName: 'Build wheel'
inputs:
scriptPath: '$(Build.SourcesDirectory)\setup.py'
arguments: 'bdist_wheel ${{ parameters.BUILD_PY_PARAMETERS }} $(NightlyBuildOption) --wheel_name_suffix=qnn'
arguments: 'bdist_wheel $(NightlyBuildOption) --wheel_name_suffix=qnn'
workingDirectory: '$(Build.BinariesDirectory)\RelWithDebInfo\RelWithDebInfo'

- task: CopyFiles@2
Expand Down

0 comments on commit c65afce

Please sign in to comment.