Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: Programming A8 and A9 Neon - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Programming A8 and A9 Neon Rate Topic: ****- 1 Votes

#1 User is offline   Brian00mc 

  • Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 14-June 12

Posted 14 June 2012 - 01:27 PM

I've programmed the Neon on the Cortex A8 (using a mix of ARM, VFP and SIMD instructions). Is there any reason this code would not work on an A9 with Neon? I've heard the Neon's are different but transparent to the programmer.

Thanks!
0

#2 User is offline   shervin 

  • Contributor
  • PipPip
  • Group: Members
  • Posts: 52
  • Joined: 17-September 10

Posted 15 June 2012 - 12:53 AM

Your ARM & VFP & NEON code from A8 should still work fine on A9. It will perform with very different speed, but it will do the same calculations atleast. The main complication is that not all A9 devices have NEON. If you know that your A9 has NEON then it will run your code from A8 without problem. Just don't expect the same speedup.
2

#3 User is offline   Brian00mc 

  • Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 14-June 12

Posted 15 June 2012 - 04:03 PM

Thankyou, Shervin.

It's been quoted that A9 runs at 2.5 Dry and A8 2.0 Drystone. Seems to imply a 25% improvement for A9. Is this in the ballpark?

Thanks Again
Brian


View Postshervin, on 15 June 2012 - 12:53 AM, said:

Your ARM & VFP & NEON code from A8 should still work fine on A9. It will perform with very different speed, but it will do the same calculations atleast. The main complication is that not all A9 devices have NEON. If you know that your A9 has NEON then it will run your code from A8 without problem. Just don't expect the same speedup.

0

#4 User is offline   shervin 

  • Contributor
  • PipPip
  • Group: Members
  • Posts: 52
  • Joined: 17-September 10

Posted 15 June 2012 - 04:30 PM

Actually no that is not typical at all! Cortex-A9 is a very different CPU than Cortex-A8, especially in the cache system and the regular CPU processing (ie: non-NEON). So from what I have seen, regular CPU code seems to run much better on A9 compared to A8 (probably mostly due to out-of-order speculative execution in A9 but not A8), but NEON does not necessarily run any better on A9 than A8 (in fact in some ways it is better in A8 than A9!). So I often see 10-30x boost by using NEON on A8 but only 2-5x boost by using NEON on A9. This doesn't mean that NEON is crippled on A9, it mostly means than regular CPU code runs badly on A8 but does much better on Cortex-A9, so NEON does not have as much to improve on in an A9 whereas it can improve A8 CPU code a lot!

-Shervin.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic