Skip to content

ggml-sycl: add CONV_2D_DW and BF16/I32 CPY conversions - #1246

Merged
0xShug0 merged 2 commits into
0xShug0:mainfrom
newjordan:pr/ggml-sycl-cpy-conv-2d-dw
Nov 9, 2026
Merged

0xShug0 merged 2 commits into
0xShug0:mainfrom
newjordan:pr/ggml-sycl-cpy-conv-2d-dw

Conversation

@newjordan

Copy link
Copy Markdown
Contributor

Adds two small pieces the SYCL backend was missing. These came out of validating other models on SYCL for the report requested on #1241.

  • CPY conversions: BF16 to F16, BF16 to F32 and I32 to F32. These aborted with an unsupported type combination in Kokoro, Qwen3-ASR, the Qwen3 aligner, PocketTTS, Magpie and Parakeet. supports_op now also reports the strided I32 and I16 copies the dispatcher already handled, which Cohere Transcribe needs.
  • CONV_2D_DW: depthwise 2D convolution in both of the memory layouts ggml uses, matching the CPU implementation. Supertonic, VoxCPM, GigaAM and Fun-ASR need it.

Touches only external/ggml/src/ggml-sycl. Nothing here affects other backends.

Validation

Arc Pro B70, oneAPI 2026.1, Linux:

source /opt/intel/oneapi/setvars.sh
cmake -S external/ggml -B build/ggml-sycl -G Ninja -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DGGML_SYCL=ON -DGGML_SYCL_F16=ON \
  -DGGML_SYCL_TARGET=INTEL -DGGML_BUILD_TESTS=ON -DGGML_BUILD_EXAMPLES=OFF
cmake --build build/ggml-sycl --target test-backend-ops -j 16
build/ggml-sycl/bin/test-backend-ops test -b SYCL0 \
  -o CPY,CONV_2D_DW,RMS_NORM,RMS_NORM_MUL_VECTOR,FLASH_ATTN_EXT,CONV_TRANSPOSE_1D,CONCAT,EXPM1
  • test-backend-ops as above: 2977/2977, including all CONV_2D_DW cases in both layouts.
  • Each commit builds on its own.
  • With these, Kokoro, Supertonic, OmniVoice, Magpie, VoxCPM, GigaAM and Cohere Transcribe produce correct output on the B70. Details are in the validation report.
  • The op-test matrix does not cover I32 to F32 directly. It is exercised by the Magpie run, whose speech transcribes back to its input text.

Several other models now run to completion but still produce wrong output, for reasons separate from this PR. The report lists them.

Limitations

Tested on one Intel GPU, the Arc Pro B70.

Kokoro, Qwen3-ASR and others cast BF16 KV or weights to F16 or F32, and
Magpie and Parakeet cast I32 positions to F32. These aborted with an
unsupported type combination. Also report the strided I32 and I16 copies
the dispatcher already handles as supported.
Depthwise 2D convolution in both of the layouts ggml uses, matching the
CPU implementation. Supertonic, VoxCPM, GigaAM and Fun-ASR need it.
@0xShug0 0xShug0 added the ggml label Nov 9, 2026
@0xShug0
0xShug0 merged commit af6c5cf into 0xShug0:main Nov 9, 2026
7 checks passed
@0xShug0

0xShug0 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@newjordan Thanks! PR merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants