Skip to content

Commit

Permalink
[mosaic_gpu] Better error message for misaligned tma_transpose with d…
Browse files Browse the repository at this point in the history
…type.

PiperOrigin-RevId: 675731295
  • Loading branch information
cperivol authored and Google-ML-Automation committed Sep 17, 2024
1 parent 7864648 commit e92a599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jax/experimental/mosaic/gpu/examples/matmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def build_kernel(
if stages < 2:
raise ValueError(f"Need at least 2 stages, but got {stages=}")
if not rhs_transpose and jnp.dtype(rhs_dtype).itemsize != 2:
raise ValueError("Transpose only supported for only happen for 16bit types")
raise ValueError(f"Transpose only supported for 16bit types (got: {rhs_transpose=}, {rhs_dtype=})")
if swizzle not in {32, 64, 128}:
raise ValueError(f"swizzle must be 32, 64, or 128, but got {swizzle=}")

Expand Down

0 comments on commit e92a599

Please sign in to comment.