Supported hardware¶
hk-dsl builds kernels for four GPU architectures. This page is generated from the code that decides what runs where: the target table (python/hk/target/), the engine-route table (python/hk/integration/switches.py) and the runners of CI's GPU tier (.github/workflows/gpu.yml). tests/hk/ir/test_hardware_docs.py fails when the page and the code disagree.
GPUs¶
| GPU | arch | status | engine routes on by default |
|---|---|---|---|
| Radeon PRO W7900, Radeon PRO W7900D, Radeon RX 7900 | gfx1100 (RDNA3) | runs: measured on Radeon PRO W7900D; CI's GPU tier runs on one | 17: vLLM 7, SGLang 3, SGLang-Diffusion 6, hk.ops 1 |
| Radeon AI PRO R9700, Radeon RX 9070 | gfx1201 (RDNA4) | runs: measured on Radeon AI PRO R9700; CI's GPU tier runs on one | 10: vLLM 7, SGLang-Diffusion 3 |
| Instinct MI300X, Instinct MI325X | gfx942 (CDNA3) | compile-only: no part was available, so its numbers are modelled from the compiler. CI builds kernels for it; none has run on one | none |
| Instinct MI355X, Instinct MI350X | gfx950 (CDNA4) | runs: measured on Instinct MI355X; CI's GPU tier runs on one | 4: vLLM 4 |
Other GPUs are not supported, other RDNA3 parts (gfx1101, gfx1102) included. On one, hk.target.current_arch() builds for gfx1100, and every engine route is off by default. HK_ARCH names the arch to build for, as a gfx name or as one of CDNA3, CDNA4, RDNA3, RDNA4, gfx11, gfx12.
What the language has on each¶
| gfx1100 | gfx1201 | gfx942 | gfx950 | |
|---|---|---|---|---|
| lanes a wave | 32 | 32 | 64 | 64 |
hk.mma input types (the target's mma table) |
bf16, fp16, i8 | bf16, fp16, i8, fp8e4m3, fp8e5m2 | bf16, fp16 | bf16, fp16, fp8e4m3 |
register strips (hk.RS), and so hk.templates.elementwise / rowwise |
yes | yes | no | yes |
global -> LDS without passing through VGPRs (g.load(..., wait=False)) |
no | no | yes | yes |
tile fragment shapes (hk.RT(..., frag=...)) |
no | no | no | yes |
gfx950 also has the block-scaled matrix ops (hk.mma_ABt_mx: FP8 e4m3 and FP4 operands with E8M0 scales, its v_mfma_scale instruction), and hk.comm's hand-offs were measured on gfx950 only; neither is in the target table. The numbers behind the table (registers, LDS, granules, and where each was measured) are in hk.target.
Engine routes on each¶
A route is on by default only on the GPUs where it met the default-on rule (on below). Elsewhere it is off: its switch at 1 turns it on anyway, without that evidence, and not every route's kernels exist on every arch. A route marked opt-in is off on every GPU until you turn it on. What each route does and the evidence for its default: integration; python3 -m hk.integration --status prints the decision on your machine.
| route | engine | switch | gfx1100 | gfx1201 | gfx942 | gfx950 |
|---|---|---|---|---|---|---|
vllm_mxfp8 |
vLLM | HK_VLLM_MXFP8 |
off | off | off | on |
vllm_moe_a8w4 |
vLLM | HK_VLLM_MOE_A8W4 |
off | off | off | on |
vllm_dsv41_index |
vLLM | HK_VLLM_DSV41_INDEX |
off | off | off | on |
vllm_sparse_mla |
vLLM | HK_VLLM_SPARSE_MLA |
off | off | off | on |
vllm_int4 |
vLLM | HK_VLLM_INT4 |
off (2nd weight copy) | off (2nd weight copy) | off | off (2nd weight copy) |
vllm_gptq |
vLLM | HK_VLLM_GPTQ |
on | on | off | off |
vllm_quark |
vLLM | HK_VLLM_QUARK |
off (2nd weight copy) | on | off | off |
vllm_norm |
vLLM | HK_VLLM_NORM |
on | on | off | off |
vllm_gemm |
vLLM | HK_VLLM_GEMM |
on | on | off | off |
vllm_moe |
vLLM | HK_VLLM_MOE |
on | on | off | off |
vllm_moe_wna16 |
vLLM | HK_VLLM_MOE_WNA16 |
on | on | off | off |
vllm_sdpa |
vLLM | HK_VLLM_SDPA |
on | off | off | off |
vllm_backend |
vLLM | HK_VLLM_BACKEND |
opt-in | opt-in | opt-in | opt-in |
vllm_prefill |
vLLM | HK_VLLM_PREFILL |
on | on | off | off |
sglang_linear |
SGLang | HK_SGLANG_LINEAR |
on | off | off | off |
sglang_norm |
SGLang | HK_SGLANG_NORM |
on | off | off | off |
sglang_moe |
SGLang | HK_SGLANG_MOE |
on | off | off | off |
sgld_attn |
SGLang-Diffusion | HK_SGLD_ATTN |
on | on | off | off |
sgld_linear |
SGLang-Diffusion | HK_SGLD_LINEAR |
on | off | off | off |
sgld_convrot |
SGLang-Diffusion | HK_SGLD_CONVROT |
opt-in | opt-in | opt-in | opt-in |
sgld_vaeconv |
SGLang-Diffusion | HK_SGLD_VAECONV |
on | on | off | off |
sgld_rope |
SGLang-Diffusion | HK_SGLD_ROPE |
on | on | off | off |
sgld_qknorm |
SGLang-Diffusion | HK_SGLD_QKNORM |
on | off | off | off |
sgld_ditnorm |
SGLang-Diffusion | HK_SGLD_DITNORM |
on | off | off | off |
sgld_h3vae |
SGLang-Diffusion | HK_SGLD_H3VAE |
opt-in | opt-in | opt-in | opt-in |
sgld_patchembed |
SGLang-Diffusion | HK_SGLD_PATCHEMBED |
opt-in | opt-in | opt-in | opt-in |
sdpa_k3 |
hk.ops |
HK_SDPA_K3 |
on | off | off | off |
megatron_attn |
Megatron-LM | HK_MEGATRON_ATTN |
opt-in | opt-in | opt-in | opt-in |
megatron_fc1_bwd |
Megatron-LM | HK_MEGATRON_FC1_BWD |
opt-in | opt-in | opt-in | opt-in |
Off by default for a second weight copy. vllm_int4 on gfx1100, gfx950, gfx1201; vllm_quark on gfx1100: holds a second copy of the 4-bit weights (~12 GB on a 27B model, taken from the KV cache). Each switch at 1 turns its route on; the startup log lists them. They come back on when they read vLLM's weights in place.