]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
opencl: add cumsum op (llama/18981)
authorshaofeiqi <redacted>
Thu, 12 Mar 2026 05:03:07 +0000 (22:03 -0700)
committerGeorgi Gerganov <redacted>
Mon, 16 Mar 2026 11:10:15 +0000 (13:10 +0200)
commit193781cf0ebd2b299271106f22db91920e62caa4
tree3ce351c64857dc4d7312d8a470435cee3b29dbc2
parentf5ba86537886bbf9be621aeff1e43375f3de9db2
opencl: add cumsum op (llama/18981)

* OpenCL: add CUMSUM op support

* remove unused argument

* opencl: refactor cumsum

* opencl: refactor

* opencl: refactor tmp buffer

* opencl: adjust max number of subgroups

* opencl: fix whitespace

* opencl: fix global size when cumsum the tmp buffer

---------

Co-authored-by: Li He <redacted>
ggml/src/ggml-opencl/CMakeLists.txt
ggml/src/ggml-opencl/ggml-opencl.cpp
ggml/src/ggml-opencl/kernels/cumsum.cl [new file with mode: 0644]