Skip to content

set CMAKE_SYSTEM_PROCESSOR in xnnpack.cmake#22155

Merged
snnn merged 2 commits intomainfrom
zhanyi/macxnn
Sep 20, 2024
Merged

set CMAKE_SYSTEM_PROCESSOR in xnnpack.cmake#22155
snnn merged 2 commits intomainfrom
zhanyi/macxnn

Conversation

@mszhanyi
Copy link
Copy Markdown
Contributor

@mszhanyi mszhanyi commented Sep 19, 2024

Description

Motivation and Context

By default, CMAKE_SYSTEM_PROCESSOR is same CMAKE_HOST_SYSTEM_PROCESSOR
https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html
KleidiAI uses CMAKE_SYSTEM_PROCESSOR to determine whether to include some arm64 ukernels.
https://gitlab.arm.com/kleidi/kleidiai/-/blob/main/CMakeLists.txt#L134
We use Mac with Intel CPU to cross compile MAC with ARM in ios packaging pipeline
So we need to make CMAKE_SYSTEM_PROCESSOR same with ORT_TARGET_PROCESSOR

snnn
snnn previously approved these changes Sep 19, 2024
@mszhanyi mszhanyi closed this Sep 20, 2024
@mszhanyi mszhanyi reopened this Sep 20, 2024
@mszhanyi
Copy link
Copy Markdown
Contributor Author

/azp run Linux GPU CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@snnn
Copy link
Copy Markdown
Contributor

snnn commented Sep 20, 2024

/azp run Windows GPU DML CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@snnn snnn merged commit 8d2d407 into main Sep 20, 2024
@snnn snnn deleted the zhanyi/macxnn branch September 20, 2024 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants