Run and profile ML Drift on Arm Mali GPUs
Who is this for?
GPU and system engineers who want to explore ML Drift and its unified shaders for GPU-accelerated workloads in custom graphics and inference runtimes.
What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Build and run Stable Diffusion on an Android device with an Arm Mali GPU.
- Inspect a unified shader in the Stable Diffusion sample.
- Capture and inspect Mali GPU activity with Arm Streamline.
Prerequisites
Before starting, you'll need the following prerequisites:
- An Android device with an Arm Mali GPU
- A macOS or Linux host computer with Android Studio and Arm Performance Studio installed
- An installation of Homebrew on your host computer, if you’re using macOS
- At least 2.13 GB of storage on both your host and Android device
- Familiarity with C++ and command-line tools
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 run and profile the ML Drift Stable Diffusion sample on an Android device with an Arm Mali GPU. First, you’ll set up the host tools and prepare model data. You’ll then build and run the OpenCL sample, retrieve its image, and inspect a Unified Compute Language shader excerpt. Finally, you’ll capture Mali GPU activity with Arm Streamline and examine the timeline and sampled CPU functions.