Skip to content

opencl: support f16 and non-contig f32 silu - #32319

Merged
ggerganov merged 2 commits into
ggml-org:masterfrom
qualcomm:lh/silu-non-contig
Nov 17, 2026
Merged

ggerganov merged 2 commits into
ggml-org:masterfrom
qualcomm:lh/silu-non-contig

Conversation

@lhez

@lhez lhez commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Overview

This PR adds support for f16 and f32 non-contiguous silu.

Additional information

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: Yes, Opus did the implementation, I reviewed and verified.

lhez added 2 commits November 14, 2026 21:28
Assisted-by: Claude Opus 5.5
Assisted-by: Claude Opus 5.5
@github-actions github-actions Bot added documentation Improvements or additions to documentation ggml changes relating to the ggml tensor library for machine learning OpenCL Issues specific to the OpenCL backend labels Nov 15, 2026
@lhez
lhez marked this pull request as ready for review November 15, 2026 06:23
@lhez
lhez requested a review from a team as a code owner November 15, 2026 06:23
@lhez lhez added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Nov 15, 2026
@ggerganov
ggerganov merged commit ede6106 into ggml-org:master Nov 17, 2026
25 checks passed
wanghqc added a commit to qualcomm/llama.cpp that referenced this pull request Nov 22, 2026
OpenCL keeps x2ue's ggml-opencl.cpp and ports the upstream changes by hand:
the A7 non-MoE binary GEMMs for q4_0, q4_K, q5_K, q6_K and q8_0 (ggml-org#30947,
ggml-org#30948, ggml-org#31002, ggml-org#30949, ggml-org#31003; the bin layout stays default-on for the X2E
only, and the q8_0 A7 GEMM leaves the verify band to the cooperative-K GEMM),
the DIAG_MASK_INF prune (ggml-org#29801), bf16 support_op flags (ggml-org#32135, ggml-org#32202,
ggml-org#32387), f16 and non-contiguous silu (ggml-org#32319), and the bf16 sigmoid and
batched group_norm parts of ggml-org#32251 (its add/mul row period, f16 swiglu_oai
and q4_K flat GEMV tail were already fixed here).
Upstream's decomposed flash attention (ggml-org#32046, ggml-org#32522, ggml-org#32577, ggml-org#32631) is not
taken: x2ue keeps its own decomposition, so those kernels are dropped.
speculative.cpp keeps x2ue's driver and accepts the new draft-dflash2 and
draft-lilicorr types, which route to its single DFlash implementation.
qwen4exp keeps its 128-row hc down/inject padding as an override of the merge
helper that moved to qwen.py.
Annieren pushed a commit to Annieren/llama.cpp-upstream that referenced this pull request Nov 23, 2026
* opencl: support non-contig silu

Assisted-by: Claude Opus 5.5

* opencl: support f16 silu

Assisted-by: Claude Opus 5.5
Mr-J-369 pushed a commit to Mr-J-369/llama.cpp-Android that referenced this pull request Nov 25, 2026
* opencl: support non-contig silu

Assisted-by: Claude Opus 5.5

* opencl: support f16 silu

Assisted-by: Claude Opus 5.5
(cherry picked from commit ede6106)
Nindaleth pushed a commit to Nindaleth/llama.cpp that referenced this pull request Nov 26, 2026
* opencl: support non-contig silu

Assisted-by: Claude Opus 5.5

* opencl: support f16 silu

Assisted-by: Claude Opus 5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ggml changes relating to the ggml tensor library for machine learning merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. OpenCL Issues specific to the OpenCL backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants