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

rewrite hello-neon as a generic vectorization sample #1011

Open
DanAlbert opened this issue May 3, 2024 · 1 comment
Open

rewrite hello-neon as a generic vectorization sample #1011

DanAlbert opened this issue May 3, 2024 · 1 comment

Comments

@DanAlbert
Copy link
Member

DanAlbert commented May 3, 2024

This sample probably made more sense back when it was written, but now it's not really guiding people toward doing the right thing.

Much more useful, I think would be rewriting it as a general purpose vectorization demo. Pick some sort of vectorization problem (probably something simple like a matrix multiply), and build an implementation for each of:

  • Neon intrinsics
  • Clang's arch-generic intrinsics
  • SVE
  • C++'s <algorithm> stuff, if the problem we pick is suitable for them
  • Plain old C++, letting the compiler autovectorize

And then the UI would show the benchmark results of each so people can see the differences.

@DanAlbert
Copy link
Member Author

After this merges and before I delete the old one, https://developer.android.com/ndk/guides/cpu-arm-neon will need to be updated since it points to hello-neon.

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

No branches or pull requests

1 participant