Skip to content

Commit c43ebec

Browse files
authored
Disable KleidiAI in Python Packaging pipeline MacOS build
This is a workaround for a build error. See #24152.
1 parent 24ece47 commit c43ebec

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tools/ci_build/github/azure-pipelines/stages/py-cpu-packaging-stage.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,20 @@ stages:
232232
set -e -x
233233
export _PYTHON_HOST_PLATFORM=macosx-${{variables.MACOSX_DEPLOYMENT_TARGET}}-universal2
234234
python3 -m pip install -r '$(Build.SourcesDirectory)/tools/ci_build/github/linux/docker/scripts/requirements.txt'
235-
python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --build_dir $(Build.BinariesDirectory) --use_coreml --skip_submodule_sync --parallel --use_vcpkg --use_vcpkg_ms_internal_asset_cache --use_binskim_compliant_compile_flags --config Release --build_wheel ${{ parameters.build_py_parameters }} --use_coreml --cmake_extra_defines CMAKE_OSX_ARCHITECTURES="arm64;x86_64" --update --build
235+
# Note: There is a build error when we set CMAKE_OSX_ARCHITECTURES="arm64;x86_64" and KleidiAI is enabled.
236+
# Disable KleidiAI as a workaround with --no_kleidiai.
237+
# TODO Re-enable KleidiAI once https://github.com/microsoft/onnxruntime/issues/24152 is fixed.
238+
python3 $(Build.SourcesDirectory)/tools/ci_build/build.py \
239+
--build_dir $(Build.BinariesDirectory) \
240+
--use_vcpkg --use_vcpkg_ms_internal_asset_cache \
241+
--use_binskim_compliant_compile_flags \
242+
--config Release \
243+
--build_wheel \
244+
--use_coreml \
245+
--no_kleidiai \
246+
${{ parameters.build_py_parameters }} \
247+
--cmake_extra_defines CMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
248+
--update --skip_submodule_sync --build --parallel
236249
displayName: 'Command Line Script'
237250
238251
- script: |

0 commit comments

Comments
 (0)