android / ndk-samples

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

rewrite hello-neon as a generic vectorization sample #1011

Open DanAlbert opened 6 months ago

DanAlbert commented 6 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 5 months 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.