GH-40806: [C++] Correctly report asimd/neon in GetRuntimeInfo#40857
Merged
cyb70289 merged 2 commits intoapache:mainfrom Mar 28, 2024
Merged
GH-40806: [C++] Correctly report asimd/neon in GetRuntimeInfo#40857cyb70289 merged 2 commits intoapache:mainfrom
cyb70289 merged 2 commits intoapache:mainfrom
Conversation
|
|
Member
|
Looks ok to me, but I'm not so familiar with arm. Will wait for yibo's comments |
cyb70289
approved these changes
Mar 28, 2024
Contributor
|
Thanks @amoeba ! |
Member
Author
|
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 6cecbab. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 27 possible false positives for unstable benchmarks that are known to sometimes produce them. |
Member
|
Hello,
Can this perhaps be reverted? |
Contributor
|
oops, then it should be reverted |
pitrou
added a commit
that referenced
this pull request
Apr 3, 2024
Member
|
Ok, I've opened #40980 to revert. |
Member
Author
|
Thanks for catching this @pitrou. |
pitrou
added a commit
that referenced
this pull request
Apr 4, 2024
Revert changes from #40857. `GetRuntimeInfo` returns the SIMD level for dynamic dispatch, but Neon currently does not participate in dynamic dispatch (actually, Neon should be available by default on all modern Arm CPUs AFAIU). Authored-by: Antoine Pitrou <pitrou@free.fr> Signed-off-by: Antoine Pitrou <antoine@python.org>
vibhatha
pushed a commit
to vibhatha/arrow
that referenced
this pull request
May 25, 2024
…pache#40857) ### What changes are included in this PR? New case to conditional in `MakeSimdLevelString` which makes `GetRuntimeInfo` report correctly on respective CPUs. I chose to have it report "neon". Lowercase to match other strings and "neon" instead of "asimd" because I think that makes more sense to users. I'm not 100% sure which is more correct. Fixes apache#40806 ### Are these changes tested? We don't have automated tests for this. I did install the R package and, on my M1 laptop it reports 'neon' now instead of 'none' before: ```r > arrow_info() ... SIMD Level neon Detected SIMD Level neon ``` ### Are there any user-facing changes? No. * GitHub Issue: apache#40806
vibhatha
pushed a commit
to vibhatha/arrow
that referenced
this pull request
May 25, 2024
Revert changes from apache#40857. `GetRuntimeInfo` returns the SIMD level for dynamic dispatch, but Neon currently does not participate in dynamic dispatch (actually, Neon should be available by default on all modern Arm CPUs AFAIU). Authored-by: Antoine Pitrou <pitrou@free.fr> Signed-off-by: Antoine Pitrou <antoine@python.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are included in this PR?
New case to conditional in
MakeSimdLevelStringwhich makesGetRuntimeInforeport correctly on respective CPUs. I chose to have it report "neon". Lowercase to match other strings and "neon" instead of "asimd" because I think that makes more sense to users. I'm not 100% sure which is more correct.Fixes #40806
Are these changes tested?
We don't have automated tests for this. I did install the R package and, on my M1 laptop it reports 'neon' now instead of 'none' before:
Are there any user-facing changes?
No.