Get started with Scalable Vector Extension 2 on Android
Introduction
Enable SVE2 support in Android Studio
Implement vector operations
Next Steps
Get started with Scalable Vector Extension 2 on Android
Who is this for?
This is an introductory topic for software developers interested in learning how to use the Scalable Vector Extension 2 (SVE2) on Arm powered mobile devices running Android.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Enable Scalable Vector Extension 2 (SVE2) support in Android Studio.
- Implement an Android application that uses the Android Native Development Kit (NDK) to calculate the fused multiply-add (FMA).
- Measure the performance uplift by using SVE2 intrinsics.
Prerequisites
Before starting, you will need the following:
- A x86_64 or Apple development machine with Android Studio installed.
- A 64-bit Arm powered smartphone running Android.
- Knowledge of Single instruction Multi Data (SIMD)
- Knowledge of Neon
- Knowledge of Scalable Vector Extension (SVE)
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
native-lib.cpp under app/cpp/. Add the necessary includes, helper functions, both FMA implementations with and without SVE2, and the measureExecutionTime template in that file.