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

PowerPC: Check for VSX and power8 arch for enabling altivec implementations #619

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

t20100
Copy link
Contributor

@t20100 t20100 commented Jun 14, 2024

This PR adds more checks of C macro for enabling the altivec implementations of shuffle and bitshuffle.
Indeed checking __ALTIVEC__ is not enough (see #592 for details).

I tested this as part of hdf5plugin (see silx-kit/hdf5plugin#307 (comment)).
Checking only __VSX__ was not enough since some features were added over time and I had issue compiling with -mcpu=power7.

Really not sure it is the best approach, but it looks to work for what I tested.

attn @barracuda156 @kif

@FrancescAlted FrancescAlted merged commit 8f8d931 into Blosc:main Jun 14, 2024
17 checks passed
@FrancescAlted
Copy link
Member

Thanks @t20100 . In case you need some more modification, please tell us.

@t20100 t20100 deleted the fix-power-vsx branch June 17, 2024 06:54
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