android / ndk-samples

Android NDK samples with Android Studio
http://developer.android.com/ndk
Apache License 2.0
9.97k stars 4.15k forks source link

rewrite hello-neon as a generic vectorization sample #1011

Open DanAlbert opened 2 months ago

DanAlbert commented 2 months ago

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:

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

DanAlbert commented 1 month ago

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.