Taojie
Taojie
# [Robustness]: Observations on missing defensive bounds checks in TritonGPU layout conversions **Target**: `lib/Dialect/TritonGPU/IR/LinearLayoutConversions.cpp`, verifiers, and layout lowering passes **Target Commit**: `42c5e89c3` / `main` --- ### Summary We identified several...
## Summary `tl.range(..., warp_specialize=True)` on a Hopper loop whose producer side uses a **plain `tl.load`** (not a TMA descriptor load) feeding `tl.dot` aborts the pass with `LLVM ERROR: unsupported load...
## Summary A `tl.gather` result used as a `tl.dot` operand inside `tl.range(..., warp_specialize=True)` aborts the `NVGPUWarpSpecialization` pass at `WSDataPartition.cpp:330` (`llvm_unreachable("Unexpected op")`) during backward-slice partitioning — `tt.gather` is not in the...
## Summary `tl.atomic_add` placed **before** `tl.dot` inside `tl.range(..., warp_specialize=True)` aborts with `LLVM ERROR: operation destroyed but still has uses` on an `arith.constant` — the WS partitioning erases an op that...
## Summary `tl.atomic_add` on the dot accumulator written **after** `acc += tl.dot` inside `tl.range(..., warp_specialize=True)` aborts at `WSDataPartition.cpp:775` (`llvm_unreachable("Unexpected asyncTaskIds.size()")`) — the atomic carries a task-id count the sliceOp dispatch...
## Summary Capturing `tl.atomic_add`'s **return value** and carrying it across `tl.range(..., warp_specialize=True)` iterations asserts at `ControlFlowInterfaces.cpp:478` (`expected the same number of operands and inputs`) — the WS transform produces a...
## Summary `tl.gather` then `tl.flip` applied to the dot accumulator inside `tl.range(..., warp_specialize=True)` aborts at `WSDataPartition.cpp:1209` (`llvm_unreachable("unsupported op type")`) — `sliceOp`'s op dispatch has no `GatherOp` case. `num_ctas=1`, `num_warps=4`. Order-sensitive:...
## Summary Two sequential `tl.range(..., warp_specialize=True)` loops in one kernel assert at `mlir/IR/Dominance.cpp:262` (`expected non-null blocks`) during the `NVGPUWarpSpecialization` pass. `num_ctas=1`, `num_warps=4`. ## Reproducer Save the following script as `repro.py`...
## Summary `tl.sum(acc, axis=0)` — a reduce on the dimension the WS pass partitions the dot accumulator along — inside `tl.range(..., warp_specialize=True)` asserts at `WSDataPartition.cpp:1200` (`reduce should not happen on...
## Summary `tl.dot(..., input_precision="tf32x3")` launched with `num_ctas >= 2` aborts in the wgmma shared-memory operand lowering at `MMAHelpers.h:172` (`assert(block == 0)`). The CGA block basis introduced by multi-CTA is non-zero,...