This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/data/kbench_rows/kbench_rows_kernels_libr3d.txt
Asim Siddiqui 6cb9826975 libr3d: the gfx11 (RDNA3) kernel library
A complete row set for the gfx11 family (1100/1101/1102/1103/1150/1151 plus gfx11-generic),
mirroring libr4d's structure: the quantised GEMM rows (m16, tiled, gated, the bf16 logits
gemm), the paged and ragged attention for decode and prefill, the KV store, the sampler
spine and the spec rows, with the recorded-fixture, board, selftest and comparison-driver
gates for each.

The gates are the record. Every row is measured against libref on the shape matrix: the
recorded fixture at 1153 cases with worst rel_l2 1.362e-03, the board's five modes with
bit-identical decision lines, the selftest at 74 rows, and the 233-case served-shape pairing
at 0 divergent against the tree libref. End-to-end on a 2B fp8 checkpoint served on the
card, coherent through prefix-cache adoption.

Two platform laws each shape the design. A kernel that calls device printf takes the
implicit hidden_hostcall_buffer argument and is undispatchable by the AQL backend, so the
trace records are plain stores behind a budget. And a plugin-owned __device__ global is not
a channel into the engine's dispatch path: in a dlopened plugin the runtime's symbol stub
is not the address the kernel's module writes, so the served trace channel is a hipMalloc'd
record slot passed as a kernel argument, with the device-global ring kept for the board.

kv_store bounds its slots at the pool's own plane (n_blocks x block_size), the span the
cache operand declares, not at the step's own span: a request that adopts a cached prefix
writes its new tokens at the allocator's global block indices, which sit past any bound
built from the step's token count, and a slot lost there is KV that attention then reads
stale. A corrupt slot map is dropped at the same bound.
2026-10-28 13:51:45 +01:00

37 lines
770 B
Plaintext

# Kernel rows a replay of this fixture reaches (rad-kbench --coverage).
# A row listed here and not reached fails the replay; regenerate with
# --coverage-write when a row is added or deliberately retired.
add_bf16
attn_paged_fp8_decode
cast_bf16_bf16
dflash_select_bf16
gated_quant_fp8_bf16
gather_rows_bf16
gemm_nt_bf16_m16
gemm_nt_bf16_tiled
gemm_nt_q_fp8a8_m16
gemm_nt_q_fp8a8_tiled
gemm_nt_q_gated_fp8a8
kv_store_fp8
layernorm_bf16
quant_act_fp8_bf16
quant_act_i8_bf16
rmsnorm_bf16
rmsnorm_quant_fp8_bf16
rope_bf16
row_topk_bf16
sample_argmax_f32
sample_dry_f32
sample_logprobs_f32
sample_mask_f32
sample_minp_f32
sample_penalties_f32
sample_pick_f32
sample_temp_f32
sample_topk_f32
sample_topp_f32
sample_typical_f32
sample_xtc_f32
scatter_rows_bf16
silu_mul_bf16