Mali GPUs are commonly found in mobile and embedded devices, especially in smartphones, tablets, and low-power boards like the Raspberry Pi. When using TensorFlow on such platforms, especially with TensorFlow Lite and GPU delegation, performance on Mali GPUs can be decent for inferencing, but it comes with certain caveats.
Summary of Mali GPU Performance with TensorFlow GPU Delegate:
✅ What works well:
⚠️ Limitations and Considerations:
-
No CUDA Support:
- Unlike NVIDIA GPUs, Mali GPUs use OpenGL ES or Vulkan, not CUDA. So, traditional TensorFlow (non-Lite) does not support GPU acceleration on Mali hardware.
-
Limited Model Support:
- Not all TensorFlow models are compatible with the TFLite GPU delegate.
- Models must be quantized or converted to TFLite format.
- Certain operations (especially custom ops) may fall back to CPU if they're not supported by the GPU delegate.
-
Lower Peak Performance than Desktop GPUs:
- Mali GPUs are not as powerful as dedicated desktop GPUs from NVIDIA or AMD.
- Expect modest speedups (2x–5x over CPU), depending on the model and device.
-
Driver and Compatibility Issues:
- Performance and compatibility depend heavily on the Mali GPU driver and supported OpenGL/Vulkan version.
- Not all devices are equally well supported.
Tips for Best Performance:
Example Use Case Devices with Mali GPUs:
- Raspberry Pi 4 (with Mali GPU via Vulkan/OpenGL)
- Android phones with Mali-G76, G57, G52, or newer
- ARM-based development boards (Rockchip, Amlogic, etc.)
Performance Example (Ballpark Estimates):
| Model | CPU (TFLite) | GPU (TFLite + Mali G76) |
|---|
| MobileNetV2 | 80 ms | 20-30 ms |
| PoseNet | 150 ms | 50-70 ms |
| EfficientNet-Lite0 | 230 ms | 80–120 ms |
(Note: Actual results vary greatly by device, driver, and optimization)
Conclusion:
Using Mali GPUs with the TensorFlow Lite GPU delegate can significantly improve inference performance on ARM-based mobile and embedded devices, especially for smaller models. However, limitations exist with model compatibility and hardware support. For best results, stick with TFLite-optimized models and benchmark on your target hardware.
Let me know your specific use case or device, and I can help tailor recommendations.