You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Gluon][Dialect] Tighten verifiers, add more helpful error messages (triton-lang#8981)
`DotOpMMASmemLoader::build` is now fallible if it cannot find an SMEM
atom to implement the layout. Since the logic is fairly complex, it
perhaps doesn't make sense as a verifier. This is piped through the
lowering of `WarpGroupDotOp`, `TMEMCopyOp`, and the MMAv5 ops, which are
not fallible too.
* Add verifiers to `tma` functions in Gluon, especially `async_gather`
and `async_scatter` which will happily trigger illegal instruction if
runtime invariants are not satisfied
* Verify `NVMMASharedEncodingAttr` is valid and fix all the unit tests
* Misc other cleanups
Some of these should eventually get moved up to Python for better UX but
it's sufficient for the error message to be more actionable.
0] ==1, f"async {op_name} requires the tensor descriptor's block shape to have 1 row, but got {tensor_desc.block_shape}"
38
+
asserttensor_desc.block_shape[
39
+
1] >=min_cols, f"async {op_name} requires the tensor descriptor's block shape to have at least {min_cols} columns, but got {tensor_desc.block_shape[1]}"
0 commit comments