]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
sycl: add ROLL operation support (llama/16665)
authortamarPal <redacted>
Mon, 27 Oct 2025 01:20:24 +0000 (03:20 +0200)
committerGeorgi Gerganov <redacted>
Sat, 1 Nov 2025 07:41:35 +0000 (09:41 +0200)
commit8a74d55a6d53f5044aed9133905e2b9567244f4d
tree45c4610b7262f516b267fc059ec65bd893f60f0f
parenta25b01e5d893bccdf3388ef10c7a53b05632f80a
sycl: add ROLL operation support (llama/16665)

* sycl: add ROLL operation support

- Implement ggml_sycl_roll function for F32 tensors
- Add multi-axis roll operation with SYCL kernel
- Support all 4 tensor dimensions with proper shift normalization
- Add roll.cpp and roll.hpp to SYCL backend
- Update backend dispatch and supports_op for GGML_OP_ROLL
- Tests: 17662/17662 pass with identical CPU reference results

* fix: remove trailing whitespace from roll.cpp

- Fix EditorConfig violations in ggml/src/ggml-sycl/roll.cpp
- Remove trailing spaces from lines 6, 11, 28, 47, 58, 60

* ci: retrigger

* sycl: remove wait() calls from ROLL operation

* fix: editorconfig — LF endings + final newline for roll.hpp

---------

Co-authored-by: tamarPal <redacted>
src/ggml-sycl/backend.hpp
src/ggml-sycl/ggml-sycl.cpp
src/ggml-sycl/roll.cpp [new file with mode: 0644]
src/ggml-sycl/roll.hpp [new file with mode: 0644]