]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
sycl: *glu flat path (llama/26354)
authorTitaniumtown <redacted>
Fri, 7 Aug 2026 05:24:40 +0000 (22:24 -0700)
committerGeorgi Gerganov <redacted>
Fri, 7 Aug 2026 18:59:49 +0000 (21:59 +0300)
commit077c5d42d27f3f46658965d1f4afbb95e5ff1b1e
tree9ef54d83b7f94bb394ae27c1c6d4aa899701274a
parent9faa9ee7b0e54828a21149e2e02bdd04123a696b
sycl: *glu flat path (llama/26354)

* tests: add SWIGLU perf cases

perf mode had no GLU coverage. Adds SWIGLU at 17408 columns, 512 and
2048 tokens, f16 and f32, with the operands both fused and split.

* sycl: consolidate fused-GLU kernels

They differed only in which op_* they called, so take the op as an argument and share a common launcher.
Their block sizes were all 256, so launch geometry is unchanged;
SYCL_GELU_BLOCK_SIZE and SYCL_SILU_BLOCK_SIZE lose their last users so are dropped.

* sycl: contiguous fast path for the fused GLU ops

o0 == n and o1 == n collapse the de-interleave index math to the
identity, so dispatch a flat kernel in that case. It fires for
ggml_glu_split with packed operands; a fused [gate|up] tensor keeps the
strided path. test-backend-ops perf -o SWIGLU on an Arc Pro B70: split
+14% f16 and +4% f32, fused unchanged.
ggml/src/ggml-sycl/element_wise.cpp
ggml/src/ggml-sycl/presets.hpp