Examples of using the Khronos Group's Vulkan Compute API standard to perform vector addition on Android Phone Operating System.
You will need JDK, Android SDK, Android NDK and an Android device to use this.
We use Gradle to build. Please follow the installation instruction for your operating system.
Run following script to generate the apk file.
$ export ANDROID_HOME=[Path to your Android SDK, e.g., ~/Android/sdk]
$ export ANDROID_NDK_HOME=[Path to your Android NDK, e.g., ~/Android/sdk/ndk-bundle]
$ gradle clean build
In app/build/outputs/apk/debug
you'll find app-debug.apk
. Upload app-debug.apk
to your Android device and install it.
$ adb install -r /app/build/outputs/apk/debug/app-debug.apk
Success