Skip to content

opencl: disable FA and MoE weights repack to work around compiler issues for Adreno 850 GPU - #25745

Merged
max-krasnyansky merged 2 commits into
ggml-org:masterfrom
qualcomm:hq/adreno850-e17-compat
Jul 16, 2026
Merged

max-krasnyansky merged 2 commits into
ggml-org:masterfrom
qualcomm:hq/adreno850-e17-compat

Conversation

@wanghqc

@wanghqc wanghqc commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Overview

This PR temporally disables FA and MoE weights repack to work around compatibility issues in the compiler of Adreno 850 GPU.

We will update the workaround in the future when its compiler is more mature.

Additional information

For Adreno 850 GPU only.

Requirements

@wanghqc
wanghqc requested a review from a team as a code owner July 16, 2026 00:19
@github-actions github-actions Bot added ggml changes relating to the ggml tensor library for machine learning OpenCL Issues specific to the OpenCL backend labels Jul 16, 2026
@lhez
lhez requested a review from max-krasnyansky July 16, 2026 02:33
@max-krasnyansky
max-krasnyansky merged commit 3dafb58 into ggml-org:master Jul 16, 2026
26 checks passed
zengde pushed a commit to zengde/llama.cpp that referenced this pull request Jul 16, 2026
…ues for Adreno 850 GPU (ggml-org#25745)

* opencl: workaround for A850 compiler compat

* opencl: fix DX compiler version parsing and cleanup

---------

Co-authored-by: Li He <[email protected]>
@wanghqc
wanghqc deleted the hq/adreno850-e17-compat branch July 19, 2026 15:59
wanghqc added a commit to qualcomm/llama.cpp that referenced this pull request Jul 30, 2026
The default gate keyed on adreno_cl_compiler_version.major < 0 -- "the version
parser matched nothing" -- which was the art.api37 driver's signature when the
gate was written. Upstream 3dafb58 (ggml-org#25745) later taught the parser the E17
scheme, so that driver now parses as type == E17, major = 51, and the default
stopped firing on any device at all; the measured +66% on the Adreno 850 only
shipped through the env override. Match the parsed E17 type directly (kept as a
dedicated test, separate from the liftable E17 workaround predicates -- this is
a perf default, not a workaround) and keep major < 0 so a future driver the
parser cannot classify is still treated as the starved one until measured.

Note the gate cannot defer to a user-set KMP_BLOCKTIME: ggml-cpu.c setenv()s
KMP_BLOCKTIME=200 at CPU backend init whenever it is unset, so by the time the
OpenCL backend initializes the variable is always present and carries no signal
about user intent. GGML_OPENCL_KMP_BLOCKTIME=-1 remains the way to keep the
runtime's own setting.
satindergrewal pushed a commit to satindergrewal/llama.cpp that referenced this pull request Aug 12, 2026
…ues for Adreno 850 GPU (ggml-org#25745)

* opencl: workaround for A850 compiler compat

* opencl: fix DX compiler version parsing and cleanup

---------

Co-authored-by: Li He <[email protected]>
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
…ues for Adreno 850 GPU (ggml-org#25745)

* opencl: workaround for A850 compiler compat

* opencl: fix DX compiler version parsing and cleanup

---------

Co-authored-by: Li He <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning OpenCL Issues specific to the OpenCL backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants