]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
opencl: add cumsum op (#18981)
authorshaofeiqi <redacted>
Thu, 12 Mar 2026 05:03:07 +0000 (22:03 -0700)
committerGitHub <redacted>
Thu, 12 Mar 2026 05:03:07 +0000 (22:03 -0700)
commit3d9ab225e71d96458adc2219f0d039bc46dbc8b9
tree5006fa9dd4fc52551d77f6cc0a888607cb85d536
parentd63aa398de455cf8243802c5099dc30a2e26edcc
opencl: add cumsum op (#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]