NEON support for android port

  • Sashkakuhta
    2nd Jan 2017 Member 0 Permalink

    https://en.wikipedia.org/wiki/ARM_architecture#NEON

     

    Most android devices have NEON these days, so why not use it?

    Should be as easy as adding -mfpu=neon to compilation flags.

    Or was this tested already and gave no performance improvement?

  • jacob1
    3rd Jan 2017 Developer 0 Permalink
    I didn't test it because I didn't know it existed (I'm not really an android guy)

    Will this cause any issues for devices that don't have NEON? How much speed boost do you think it would give?
  • Sashkakuhta
    3rd Jan 2017 Member 0 Permalink

    This will likely break compatibility with devices that have no NEON (devices with armv6 and earliest armv7 CPUs).

    NEON does give slight performance improvement in CPU miner benchmark, but I can't really tell what effect it will have on TPT

    Edited once by Sashkakuhta. Last: 3rd Jan 2017
  • Sashkakuhta
    26th Jul 2017 Member 0 Permalink

    A bit of necroposting, but I "benchmarked" NEON vs not-NEON build performance, NEON gives maybe 0.20 FPS improvement at best, which is pointless really: http://imgur.com/a/To9hP. ARMv8 with it's 64 bits can probably give some actual performance improvements.

  • jombo23
    26th Jul 2017 Member 0 Permalink

    @Sashkakuhta (View Post)

     But is there actually more registers or anything like x86vs 64? 

     

    Or is it just 64 bit math and that nonsense.

     

    the 64 bit instructions are probably slower like on the first intel/amd cpus :V

  • Sashkakuhta
    26th Jul 2017 Member 0 Permalink

    @jombo23 (View Post)

    Wikipedia says that ARMv8 does have more registers, both general purpose and floating point, and they are all 64 bit. On RPi 3, switching from ARMv7 to ARMv8 gave about 40% improvement in X11gost hashrate, but that's mostly math. I'll test ARMv8 TPT vs ARMv7 TPT when I have some time.

    Edited once by Sashkakuhta. Last: 26th Jul 2017
  • Sashkakuhta
    29th Jul 2017 Member 0 Permalink

    So I tested it, ARMv8 gives ~ 1 fps improvement on the same CPU: http://imgur.com/a/GMkPy. Oh well.

    Edited 2 times by Sashkakuhta. Last: 29th Jul 2017