The result reads nothing like a Python error: no clickable jump, no caret, no
hint. A user hits
MLIRError: error: ".../gemm.py":612:16: 'arith.uitofp' op operand #0 must be
signless-fixed-width-integer-like, but got 'index'
and has to mentally map it back to their code, with the real call site hidden in
framework noise.
We expected
Traceback (most recent kernel call):
File ".../gemm.py", line 612, in kernel_mxscale_gemm
scale = float(idx) / 2.0
^^^^^^^^^^
CompileError: 'arith.uitofp' operand #0 must be signless integer, got 'index'
Wrap verify() and render the diagnostic's structured
location into a Python-style traceback
The result reads nothing like a Python error: no clickable jump, no caret, no
hint. A user hits
and has to mentally map it back to their code, with the real call site hidden in
framework noise.
We expected
Wrap verify() and render the diagnostic's structured
location into a Python-style traceback