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

AArch32 and AArch64 minus SIMDe fixes #475

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

georges-arm
Copy link
Contributor

It seems like #473 broke the VVenC build when building both for AArch32 and also for AArch64 if SIMDe-based kernels are not enabled. This is easily fixed through a few small tweaks:

  • Use the existing helper functions in sum_neon.h and avoiding *_high_* and other intrinsics that are not available for 32-bit Arm platforms.

  • Guard the SIMDe-enabled kernels with defined( TARGET_SIMD_X86 ) checks to avoid including these kernels if they are not available.

  • Additionally fix a typo in InterPredARM.h to refer to void InterPredInterpolation instead of TCoeffOps.

Guard uses of the new `simdFilterARM` kernel by checking that
`TARGET_SIMD_X86` is defined, since otherwise the SIMD-everywhere based
kernel is not available and will fail to compile.
Since 6a5cfa8 the AArch32 code fails to
build due to use of `*_high_*` and other intrinsics which are only
available on AArch64. Switch these to the portable versions already
defined in `sum_neon.h`.

Additionally fix a typo in InterPredARM.h.

Also adjust code style to match the prevailing style elsewhere in the
library.
@adamjw24
Copy link
Member

Thanks!

@georges-arm
Copy link
Contributor Author

Hi @adamjw24 I'm not sure what the current CI/pre-commit setup looks like, do you think it would be possible to add some additional checks to ensure that compilation on 32-bit and 64-bit Arm + the various CMake SIMD configure option combinations continues to work?

@adamjw24
Copy link
Member

While its a fair request, I think this is a very artificial use-case. In addition to the GitHub CI, we have an internal runner with around 30 builds, 10 of them also running the tests. I think stuff like here will happen occasionaly and can than be fixed. We'll put more considration into the use case the next time tho.

@adamjw24 adamjw24 merged commit cddf62d into fraunhoferhhi:master Nov 26, 2024
8 checks passed
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