Files
mandy/docs/contracts/execution_model.json

13 lines
687 B
JSON

{
"piece": "Execution model",
"status": "gpu_verified",
"rank": 1,
"sentences": [
"One invocation = one lane.",
"A wave = a subgroup, so cross-lane ops (`ds_swizzle`, `v_permlane*`, `v_readlane`/`v_writelane`, `v_mbcnt`) become subgroup shuffles.",
"**Requires subgroup size == wave size** (wave32 maps directly onto NVIDIA GPUs; wave64 shaders need a 64-wide subgroup or emulation).",
"`v_readlane_b32`/`v_writelane_b32` mask the lane select with 63 in wave64 (`S1[5:0]`) and 31 in wave32 (`S1[4:0]`); until SHADER-52 both used 63, so a wave32 select ≥ 32 pointed past a 32-wide subgroup.",
"GPU-checked with `cs_w32_lane_wrap.asm` (lane 40 → 8)."
]
}