Skip to content

Add SYCL backend support - #1241

Merged
0xShug0 merged 1 commit into
0xShug0:mainfrom
newjordan:pr/sycl-backend
Nov 9, 2026
Merged

0xShug0 merged 1 commit into
0xShug0:mainfrom
newjordan:pr/sycl-backend

Conversation

@newjordan

@newjordan newjordan commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

First of three PRs that together take YuE2 to 3.02x realtime on an Arc Pro B70, up from 1.75x with enablement alone: #1241 (this PR, backend), #1242 (ggml-sycl kernels), #1243 (YuE2). Full numbers are in #1243.

Adds ggml's SYCL backend (Intel GPUs) as --backend sycl, wired like the other GPU backends:

  • ENGINE_ENABLE_SYCL CMake option, which sets GGML_SYCL and GGML_SYCL_F16 (overridable), and sycl in the build-info backend list.
  • BackendType::Sycl, appended after WebGPU so existing values keep their numbers.
  • SYCL registry name; CLI, server and C API parsing and help text.
  • SYCL cases in the exhaustive backend switches (ace_step planner, parakeet encoder) and in the backend contract tests.
  • README and docs/build/sycl.md.

No other backend changes behavior. Running models on SYCL also needs the ggml-sycl operators in #1242.

Validation

Build, Arc Pro B70, oneAPI 2026.1, Linux:

source /opt/intel/oneapi/setvars.sh
cmake -S . -B build/sycl -G Ninja -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DENGINE_ENABLE_SYCL=ON \
  -DAUDIOCPP_MODEL_SET=custom -DAUDIOCPP_MODELS=yue2 -DENGINE_BUILD_TESTS=ON
cmake --build build/sycl --target audiocpp_cli -j 16

This branch builds on its own. The test results below are from this branch stacked with #1242 and #1243:

  • Arc Pro B70, ctest: passes except kaldi_fbank_sparse_test and mel_spectrogram_frontend_test. Both fail the same way on unmodified main built with icx, and pass with gcc.
  • RTX 4080, CUDA 13, full model set: builds, ctest 108/108 with 1 skip (torch_random_cuda_multi_device_test).
  • YuE2 on that RTX 4080 (city_lights, seed 831001, 8 steps, one warmup and 3 measured runs per config): PCM byte-identical to main.
Config main This stack PCM SHA-256 prefix
perf off 2.643x 2.655x 6a4648726475bb5c
cuda_perf 2.998x 3.018x a012bd218f700b10

Limitations

Tested on Linux with one Intel GPU, the Arc Pro B70. Other models may use ggml operators the SYCL backend does not implement yet.

Wire ggml's SYCL backend (Intel GPUs) through the framework like the other
GPU backends: an ENGINE_ENABLE_SYCL CMake option, BackendType::Sycl appended
after WebGPU so existing enum values keep their numbers, the "SYCL" registry
name, --backend sycl in the CLI, server and C API, and SYCL cases in the
exhaustive backend switches and the backend contract tests.

Build and run notes are in docs/build/sycl.md.
@0xShug0

0xShug0 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@newjordan Thanks for extending backend support! In a follow-up PR, could you add a validation report like the WebGPU report as a single source of truth for currently validated models on SYCL?

PR merged!

@0xShug0
0xShug0 merged commit 28aaff1 into 0xShug0:main Nov 9, 2026
12 checks passed
@newjordan

Copy link
Copy Markdown
Contributor Author

rgr that. will do. ty that was very fast,

0xShug0 pushed a commit that referenced this pull request Nov 9, 2026
The single list of models checked on the SYCL backend, as requested on
#1241: measurements for the ones with verified output, and the observed
result for the ones that do not work yet.
@0xShug0 0xShug0 added the ggml label Nov 9, 2026
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