﻿# What does llama.cpp’s Adreno 850 cooperative matrix path change for local inference?

A llama.cpp prerelease adds an OpenCL cooperative matrix path for selected quantizations. Isolate prompt processing, decode and thermal effects.

Author: Retrivium editorial team
Updated: 2026-11-23
Canonical URL: https://retrivium.ai/journal/daily-20261123-compute-llamacpp-adreno-coopmat-prefill/
Language: en

The llama.cpp prerelease b12629, published on November 22, 2026, adds OpenCL cooperative matrix GEMM kernels for the Adreno 850. The change lists Q4_0, Q5_0, Q8_0, Q4_K, Q5_K and Q6_K. Cooperative matrix operations let groups of lanes work together on matrix fragments. The addition is a backend capability for particular formats. A workload still needs to select the new path before it can benefit.

## Keep the model and format fixed

Measure the same weight package when comparing an earlier build and the build with the new path. Comparing two formats at once changes memory traffic and approximation error. Record the device, driver, backend and model file. Use output agreement checks on fixed inputs before measuring throughput, so that results with different numerical behavior stand out early.

## Test prompt processing and decode separately

A large prompt can produce a different matrix shape from generation one token at a time. Measure the time needed to process the prompt and the rate at which the response tokens are generated. Use more than one prompt length and retain the chosen backend for each result. If a path is selected only for certain shapes, combining all time into one figure can hide where the change mattered.

## Control the temperature of the run

On a mobile device, frequency and available power can change over a sustained test. Run repeated trials with similar starting conditions, and log battery state and temperature where available. Compare an initial run with a longer session. This helps distinguish a gain in the kernel from an advantage caused by a cooler starting condition or a short burst at a higher clock.

## Tie the result to the work you do

Summarize which supported quantization and workload shapes showed a useful improvement on your device. Record unsupported or unchanged cases in the same report. This gives a practical basis for deciding whether to adopt the build for an interactive local assistant or for longer batched work.

## Sources

- [llama.cpp build notes](https://github.com/ggml-org/llama.cpp/releases/tag/b12629)
- [Adreno cooperative matrix implementation](https://github.com/ggml-org/llama.cpp/pull/32686)

## Related reading

- [Mobile accelerator placement](/journal/heteroinfer-mobile-gpu-npu-shape-partition-shared-memory/)
- [Comparing quantized paths](/journal/vllm-quantization-launch/)
