﻿# llama.cpp Alchemist SDPA: removing a historical gate still leaves driver-stack qualification

The b12243 Alchemist SDPA gate removal is driver-history dependent; verify fused dispatch and correctness on the actual installed stack.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-engine-sycl-alchemist-sdpa-driver-gate/
Language: en

llama.cpp b12243 removes a SYCL oneDNN fused-SDPA exclusion for Alchemist at head dimension 64. The linked PR traces the old restriction to a driver-stack regression rather than a permanent hardware limitation. Re-enabling the route therefore requires preserving software-stack provenance, especially when comparing systems that still carry older components.

## A workaround can outlive its original cause

A hardware-and-shape gate can remain after the underlying software defect is corrected. The PR revisits that historical condition rather than adding a new arithmetic operator. A proposed qualification records oneDNN, compiler/runtime and graphics-driver versions, then confirms which path is selected. Without those details, two Alchemist results can disagree for legitimate software reasons while appearing to test the same hardware capability.

## Numerical success does not prove fused dispatch

The native fallback can also produce correct output. To validate the re-enabled route, combine a reference comparison with oneDNN execution diagnostics or equivalent profiling. A test that never leaves the fallback says nothing about the gate removal. Include the targeted head dimension and a control shape, with representative KV settings. This separates eligibility from arithmetic correctness and avoids interpreting every passing attention test as evidence of fusion.

## An escape hatch is a reproducibility tool

The PR retains an option to disable oneDNN Flash Attention. A local A/B can use that documented control while keeping the same binary and model. Report the effective option and selected implementation for both runs. A workaround for an older affected stack should be described with that scope, not promoted as a universal claim that oneDNN is either always necessary or always unreliable on Arc hardware.

## Keep the model result phase-specific

Upstream provides its own operation tests and prompt-processing examples on a named system. They remain attributed evidence, not new measurements here. This article reports the historical-gate mechanism and a qualification sequence without promising the same gain for every model or context. A useful result includes software versions, fused-path confirmation, numerical checks and separate prompt/generation timing on the intended Alchemist installation.

## Sources

- [llama.cpp b12243 release](https://github.com/ggml-org/llama.cpp/releases/tag/b12243)
- [llama.cpp pull request #31574](https://github.com/ggml-org/llama.cpp/pull/31574)

## Related reading

- [SYCL versus Vulkan on Intel: the reported prefill and decode ordering reverses](/journal/intel-sycl-vulkan-gemma-mtp-prefill-decode-owner-report-boundary/)
- [Intel iGPU SYCL reports: preserve prompt and generation rates separately](/journal/intel-igpu-sycl-lunar-panther-prompt-generation-reports/)
