Query Arm GPU configuration information
Introduction
Build and run an example application to obtain Arm GPU configuration information
Next Steps
Query Arm GPU configuration information
Who is this for?
This is an introductory topic for Android developers who want to adjust application complexity to match device performance.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Build the libGPUInfo library using the Android NDK
- Run an example application to query the configuration details of an Arm Mali or Arm Immortalis GPU
Prerequisites
Before starting, you will need the following:
- A development machine running Ubuntu or Debian Linux with
x86_64architecture - An Android device with an Arm GPU
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.
You’ll build the libGPUInfo C++ library with the Android NDK and run its example on an Android device. First, you’ll use
adb to deploy the sample to hardware with a Mali or Immortalis GPU. Then, you’ll inspect the reported configuration, features, and performance levels to inform graphics or compute paths at runtime.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.
Make sure the device is connected and visible to
adb. If the device isn’t discoverable by adb, reconnect it and try again.The application queries the Arm GPU and prints configuration information that highlights available features and indicative performance levels. Use this output to confirm the device’s reported GPU capabilities.
You’ll build
libGPUInfo and the example with the Android NDK on the development machine. Then, you’ll use adb to deploy and run the example on the Android device.Yes.
libGPUInfo is a C++ library that you can integrate into applications to gather Arm GPU hardware information on the device.Verify the app is running on an Android device with an Arm GPU and that the device is accessible through
adb. Re-deploy the example to the connected device and run it again.