nexus 7 simd neon-- i thought it was supported?

563 views
Skip to first unread message

K-man

unread,
Feb 5, 2013, 10:22:35 PM2/5/13
to andro...@googlegroups.com
Hi All,
I have a Nexus 7, and wanted to start getting into the SIMD programming.  I know that the Nexus 7 has a Tegra 3 chipset inside it, and according to WIkipedia, Tegra 3 supports the NEON instruction set?

I have the following line of code in my program, and it always prints out... suggesting that my Nexus 7 tablet doesn't support NEON?

features = android_getCpuFeatures();
if ((features & ANDROID_CPU_ARM_FEATURE_NEON) == 0) {
__android_log_print(ANDROID_LOG_DEBUG, "VMUL", "cpu doesnt support neon! -- ???");
}

I'm confused?  Was there an older version of the nexus 7's that didn't support NEON or something?

Thanks in advance

David Turner

unread,
Feb 6, 2013, 6:55:12 AM2/6/13
to andro...@googlegroups.com
It is actually supported by the Nexus 7, and many other Android devices (but not all). It's a regression in the cpufeatures library that was introduced recently (really sorry about this, unit testing didn't catch it because the problem doesn't always happen). You can see here for the fix in AOSP (you should be able to download the new source file  by clicking the "Download" icon).
 
Thanks in advance

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

K-man

unread,
Feb 6, 2013, 8:43:50 PM2/6/13
to andro...@googlegroups.com
Hi David,
Thanks for the quick response.  Ok... so pardon my ignorance.  What would I do with this patch?  Do I have to build the whole Android OS and then install that new update onto my Tablet (i.e. root, flash, etc etc...?)  Are there other options?

pardon my ignorance, and thanks again!

Dan V.

unread,
Feb 6, 2013, 10:04:57 PM2/6/13
to andro...@googlegroups.com
The file to patch is $NDK/sources/android/cpufeatures/cpu-features.c

K-man

unread,
Feb 6, 2013, 10:17:25 PM2/6/13
to andro...@googlegroups.com
Oh.. that makes sense.  Pardon the dumb question :*(     I have to patch the NDK builder.. got it!

Thanks again!

David Turner

unread,
Feb 7, 2013, 3:52:08 AM2/7/13
to andro...@googlegroups.com
On Thu, Feb 7, 2013 at 2:43 AM, K-man <kiran...@gmail.com> wrote:
Hi David,
Thanks for the quick response.  Ok... so pardon my ignorance.  What would I do with this patch?  Do I have to build the whole Android OS and then install that new update onto my Tablet (i.e. root, flash, etc etc...?)  Are there other options?

Just copy the new version of the file over the one in your $NDK/sources/android/cpufeatures/cpu-features.c, and rebuild your project with ndk-build.
Reply all
Reply to author
Forward
0 new messages