official-stockfish / Stockfish

A free and strong UCI chess engine
https://stockfishchess.org/
GNU General Public License v3.0
11.49k stars 2.27k forks source link

Update from arm_version: '8' to arm_version: '9.2' is needed #5127

Open Chess321 opened 7 months ago

Chess321 commented 7 months ago

Describe the issue

Snapdragon and Dimensity and every newer devices are using the much much faster ARMv9.2 Or 9.3 or 9.4. https://en.wikipedia.org/wiki/ARM_architecture_family https://www.youtube.com/watch?v=WVMmzz472ao https://www.youtube.com/watch?v=SKH7gVeLRKY

Expected behavior

Config: debug: 'no' sanitize: 'none' optimize: 'yes' arch: 'arm64' bits: '64' kernel: 'Darwin' os: '' prefetch: 'yes' popcnt: 'yes' pext: 'no' sse: 'no' mmx: 'no' sse2: 'no' ssse3: 'no' sse41: 'no' avx2: 'no' avxvnni: 'no' avx512: 'no' vnni256: 'no' vnni512: 'no' neon: 'yes' dotprod: 'yes' arm_version: '9.2' target_windows: ''

Steps to reproduce

make -j profile-build COMP=clang ARCH=apple-silicon

Anything else?

No response

Operating system

MacOS

Stockfish version

Stockfish 16.1 and newer Stockfish

MinetaS commented 6 months ago

If there are newly introduced instructions or library functions in ARMv9, we can add arm_version = 9 for sure. I believe arm_version = 8 should decently work for ARMv9 as well with the current implementation. If you know some information about new features, please enlighten us & add details here please (elaborate what you meant by "much faster").

Chess321 commented 6 months ago

If there are newly introduced instructions or library functions in ARMv9, we can add arm_version = 9 for sure. I believe arm_version = 8 should decently work for ARMv9 as well with the current implementation. If you know some information about new features, please enlighten us & add details here please (elaborate what you meant by "much faster").

https://www.anandtech.com/show/16584/arm-announces-armv9-architecture/3

https://www.datacenterknowledge.com/arm/arm-s-new-neoverse-v1-n2-chips-take-intel-data-center-market

https://analyticsindiamag.com/arm-announces-new-architecture-after-ten-years-major-updates-latest-features/

https://linuxgizmos.com/arm-announces-first-armv9-cores-including-powerhouse-cortex-x2/

https://fuse.wikichip.org/news/5269/arm-launches-its-new-flagship-performance-armv9-core-cortex-x2/

https://www.anandtech.com/Show/Index/16584?cPage=4&all=False&sort=0&page=1&slug=arm-announces-armv9-architecture

https://dev.to/serputov/sve2-arm9-4o79

https://docs.nvidia.com/grace-performance-tuning-guide.pdf

https://www.androidheadlines.com/wp-content/uploads/2021/03/Armv9-SVE2-e1617099439357.webp