Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xnnpack: fix cross-compiling for Android/armv7 #22951

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mologie
Copy link
Contributor

@mologie mologie commented Mar 1, 2024

Specify library name and version: xnnpack/*

This works around a long-standing bug of XNNPACK, which prevents building for Android with assembly=True set:

google/XNNPACK#4348

The issue will not be fixed upstream and the maintainers comment that this is a clang bug. While correct, it would be impossible to build for Android with the NDK without a recipe-level workaround. Disabling assembly is not really an option for performance reasons. This integrates the workaround suggested in the ticket.

In essence I raise the target level from XNNPACK's default of armv6 to armv7 if the Conan user targets armv7 anyway. Should thus be free of side-effects. The previously broken armv6 build is now explicitly aborted with an invalid configuration error, and the user must turn off the "assembly" option to build for armv6.


@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 1 (3a2e78f4c3dfe248b8f8f5e4c15aefabac564a02):

  • xnnpack/cci.20231026:
    All packages built successfully! (All logs)

  • xnnpack/cci.20230715:
    All packages built successfully! (All logs)

  • xnnpack/cci.20220801:
    All packages built successfully! (All logs)

  • xnnpack/cci.20220621:
    All packages built successfully! (All logs)

  • xnnpack/cci.20211210:
    All packages built successfully! (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 1 (3a2e78f4c3dfe248b8f8f5e4c15aefabac564a02):

  • xnnpack/cci.20211210:
    All packages built successfully! (All logs)

  • xnnpack/cci.20220621:
    All packages built successfully! (All logs)

  • xnnpack/cci.20231026:
    All packages built successfully! (All logs)

  • xnnpack/cci.20230715:
    All packages built successfully! (All logs)

  • xnnpack/cci.20220801:
    All packages built successfully! (All logs)

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.

None yet

3 participants