Skip to content

mca/op: always define aarch64 macros #13246

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

Merged
merged 1 commit into from
May 11, 2025

Conversation

vogma
Copy link
Contributor

@vogma vogma commented May 10, 2025

This pull request refactors the aarch64 op component’s build configuration to ensure macros are consistently defined in compliance with the style guide.

There are no code logic changes. All changes in the source code files are preprocessor only.

Build system changes:
- configure.m4: remove check for Neon floating point support as it is never used
- configure.m4: always define macros to either 0 or 1
- Makefile.am: always declare GENERATE_NEON_CODE and GENERATE_SVE_CODE

Source code (only preprocessor):
- updated macro check to #if instead of #ifdef
- Add compile-time guard in op_aarch64_functions.c to ensure exactly one of GENERATE_SVE_CODE or GENERATE_NEON_CODE is enabled
- added comment above compile-time guard

This is a follow-up PR of #13204

    Build system changes:
    - configure.m4: remove check for Neon floating point support as it is never used
    - configure.m4: always define macros to either 0 or 1
    - Makefile.am: always declare GENERATE_NEON_CODE and GENERATE_SVE_CODE

    Source code (only preprocessor):
    - updated macro check to #if instead of #ifdef
    - Add compile-time guard in op_aarch64_functions.c to ensure exactly one of GENERATE_SVE_CODE or GENERATE_NEON_CODE is enabled
    - added comment above compile-time guard

    No changes to the source code logic. Only the build system and macro checks have been changed.

    Signed-off-by: Marco Vogel <[email protected]>
@jsquyres jsquyres merged commit 37df78b into open-mpi:main May 11, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants