]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
sycl: add ROLL operation support (#16665)
authortamarPal <redacted>
Mon, 27 Oct 2025 01:20:24 +0000 (03:20 +0200)
committerGitHub <redacted>
Mon, 27 Oct 2025 01:20:24 +0000 (09:20 +0800)
commit2b9bd9bf4e759c05db629ec1c391dc8aeaa71887
tree3ea0ce83ade3acf7bf0a1759988909eb56fd54cd
parent59fc1ec8e83b14354c1a3a8acf8c5c2cbf9af42f
sycl: add ROLL operation support (#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>
ggml/src/ggml-sycl/backend.hpp
ggml/src/ggml-sycl/ggml-sycl.cpp
ggml/src/ggml-sycl/roll.cpp [new file with mode: 0644]
ggml/src/ggml-sycl/roll.hpp [new file with mode: 0644]