sycl: Phase 1 -- docs/SYCL_PORTING.md: where the core meets HIP, the op set, the design

The core's HIP use is already behind the DeviceBackend vtable except three core kernels (advance,
wtab, xprefetch), the engine's interposed hipLaunchKernel that plugins launch through, and build
switches; each site is listed with file and line. The minimal set for MiniCPM5-2B is measured with
--debug-graph on the test suite's synthetic llama containers (13 model ops, 13 sampler ops; fp8 adds
gemm_nt_q / gemm_nt_q_gated), since no MiniCPM5 container is in the model library.

The design: a fourth DeviceBackend over SYCL, a RadSyclStream hand-off for plugins with its own
version instead of an ABI bump, libxe2 AOT for bmg-g31, and on that backend a fatal error where the
planner would otherwise put a weighted op on the CPU.

scripts/sycl/op_inventory.sh generates the 238-op appendix: libref's schemas through rad-schemas,
libr4d's 407 rows parsed from source by r4d_rows.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1
This commit is contained in:
claudeandClaude Opus 5.5 committed 2026-10-23 15:38:42 +02:00
1 parent c10caa44fb
commit 58bca7602e
5 files changed
+677 -2

No files matched your search

+10
View File
@@ -55,3 +55,13 @@ output. `mcagent.sh` and `mcdecl.sh` start their own MiniCPM5-2B server through
| `mcstream.sh` | Tool-call replies streamed, asserting on raw SSE fragments rather than the assembled message. Streamed content cannot be retracted, so a repair applied at the end is not a fix. |
| `mcagent.sh` | What speculation is worth on an agentic workload: `/v1/chat/completions` with tools, a constrained decode. Speculation on and off alternate across restarts because the speculation depth is a server-level setting. |
| `mcdecl.sh` | How often the drafter proposes, by context length. `draft_acceptance_ratio` is conditional on having drafted, so it can look healthy while tokens per step collapse; blocks per step separates the two. |
## The Intel (SYCL) backend
Tools for the port in `docs/SYCL_PORTING.md`; its log is `docs/SYCL_PROGRESS.md`. They need oneAPI
(`. /opt/intel/oneapi/setvars.sh`) only where they compile device code.
| | |
|---|---|
| `sycl/probe.sh` | The card's limits, sub-group sizes and `joint_matrix` combinations, and whether XMX executes E4M3 / E5M2 DPAS, each checked against a host loop with bf16 and s8 DPAS as controls in the same harness (on the Arc Pro B65 fp8 DPAS compiles and returns garbage). |
| `sycl/op_inventory.sh` | The op vocabulary as a markdown table: libref's schemas, libr4d's kernels and dtypes per op (its rows read from source by `sycl/r4d_rows.py`, since a build without HIP has no `libr4d.so`), and which architectures name each op. |