Llama.cpp b11046: evaluate the new OpenCL flash-attention kernel without assuming a speedup

For an API service already running llama.cpp on OpenCL, b11046 is a reason to schedule a focused compatibility test, not to assume a faster runtime. The useful question is whether the new attention path activates on your configuration, preserves correctness, and improves your prefill workload enough to justify adoption.

The b11046 release page marks it as a prerelease, associates it with commit 60081bb, and links PR #29046 under “opencl: add support for bin kernel flash_attn_f32_f16_bin.” Its two change bullets announce the kernel and “opencl: guarded prefill fa.”

That wording establishes the area of the change. It does not tell us what the guard checks, which configurations select the kernel, or how much faster anything runs. The release page supplies neither correctness results nor measured speedups. The linked PR is a place to investigate those implementation questions, not evidence that they have already been answered here.

Check activation before interpreting a timing result

The page lists a Windows arm64 (OpenCL Adreno) download. Treat that as an artifact label, not a compatibility matrix: it does not prove that every Adreno device or every model workload will use the new kernel. Likewise, the other backend downloads do not turn this into a CUDA, Vulkan, or general GPU performance claim.

For this change, I would make activation a separate test result. Confirm the intended OpenCL build and investigate what evidence can establish selection of the new path for the actual request shape. The notes do not name a diagnostic flag or specify the guard, so there is no source-backed one-line activation command to give here. If activation cannot be established, record it as unknown, even if the service starts successfully or a timing changes.

A bounded comparison for an existing service

The following is a proposed evaluation, not a report of tests performed:

  1. Freeze the configuration. Record the baseline runtime version and b11046, model file and quantization, device, driver, build options, and runtime settings. Keep those inputs equivalent where possible and disclose any unavoidable differences.
  2. Choose representative prefill inputs. Use fixed prompt sets and token lengths drawn from the workload you intend to serve. Hold batch and concurrency settings fixed. Record cache and warm-up conditions so a changed test setup does not masquerade as a runtime improvement.
  3. Evaluate correctness independently. Run the same known-answer or task-level checks on both versions with matching generation settings. Set acceptable tolerances before comparing results; do not let a favorable timing override errors or degraded answers.
  4. Measure prefill separately. Repeat the comparison and report its spread, not just the best run. Keep decode timing and API-level latency as separate observations. A prefill result alone should not become a promise about either of them.

Even with confirmed activation, comparing two runtime versions is not by itself a controlled attribution of any gain to this particular kernel. Keep the conclusion at the configuration-and-version level unless further implementation evidence isolates the cause.

Turn the result into an adoption decision

Observation Suggested decision for this change
The new path’s activation is unknown or it is not selected Keep the kernel evaluation inconclusive; resolve selection and guard behavior before crediting it with a gain.
Correctness checks regress or execution fails Retain the baseline for the service and investigate the failing configuration.
Activation is confirmed, correctness is acceptable, but prefill gains are absent or noisy Do not upgrade on the strength of a speedup claim.
Activation is confirmed, correctness is acceptable, and useful prefill gains repeat Consider a limited rollout on that tested configuration, with the baseline available for rollback.

The narrow conclusion matters: b11046 announces an OpenCL kernel and guarded prefill change worth evaluating for an existing OpenCL deployment. It does not establish a reason to switch backends, promise faster decoding, or generalize a result across hardware and models.

I would separate workload discovery from the final adoption test. The b11046 notes announce guarded prefill but do not describe the guard. That leaves an evaluation-design trap: finding request shapes where the new path activates, then using only those shapes to justify the upgrade.

For this comparison, I would use two stages:

  • Exploration: vary prompt length and batch settings to investigate selection. Keep a record of every attempted configuration, including failures and unknown activation, rather than retaining only favorable cases.
  • Confirmation: freeze the candidate configuration, correctness criteria, and minimum useful prefill improvement before testing a separate prompt set chosen to represent the intended service workload. Compare both runtime versions on those same prompts, and report results by request-shape group as well as any overall summary.

These are proposed test controls, not results or a claim about which shapes b11046 supports. If exploration finds a promising configuration but confirmation does not reproduce the benefit, I would keep it as an experimental lead, not an adoption result. If confirmation succeeds only for one group, the defensible conclusion is limited to that group; the rest of the workload still needs its own decision. This adds a check against selecting the benchmark around the apparent gain after seeing it.