Skip to content

Commit

Permalink
Fix failed Python_Packaging_Windows_ARM64_QNN.
Browse files Browse the repository at this point in the history
  • Loading branch information
mindest committed Jul 23, 2024
1 parent dd010ed commit 75bace0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ stages:
SymbolServerType: TeamServices
SymbolExpirationInDays: 3650
SymbolsArtifactName: 'win_cpu_$(PythonVersion)_$(buildArch)_$(Build.BuildNumber)'

- task: TSAUpload@2
displayName: 'TSA upload'
condition: and(and (succeeded(), and(eq(variables['buildArch'], 'x64'), eq(variables['PythonVersion'], '3.8'))), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
Expand Down Expand Up @@ -485,7 +485,7 @@ stages:
- template: py-linux.yml
parameters:
arch: 'x86_64'
machine_pool: 'onnxruntime-Ubuntu2204-AMD-CPU'
machine_pool: 'onnxruntime-Ubuntu2204-AMD-CPU'
extra_build_arg: ${{ parameters.build_py_parameters }}
cmake_build_type: ${{ parameters.cmake_build_type }}

Expand All @@ -510,7 +510,6 @@ stages:
MACHINE_POOL: 'onnxruntime-qnn-windows-vs-2022-arm64'
QNN_SDK: ${{ parameters.qnn_sdk_version }}
PYTHON_VERSION: '3.11'
NUMPY_VERSION: '1.26.4'

- ${{ 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 @@ -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 @@ -157,7 +152,7 @@ jobs:
condition: and (succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
GdnPublishTsaOnboard: false
GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa'
GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa'

- template: component-governance-component-detection-steps.yml
parameters:
Expand Down

0 comments on commit 75bace0

Please sign in to comment.