Skip to content

Output of dump_mlir_passes is interpreted as a warning #76

@Balint-R

Description

@Balint-R
WARNING:root:The following error is caused by this command:

mlir-opt -eliminate-empty-tensors -empty-tensor-to-alloc-tensor -one-shot-bufferize='allow-unknown-ops bufferize-function-boundaries' -canonicalize -buffer-deallocation -convert-bufferization-to-memref -convert-linalg-to-loops -cse -expand-strided-metadata -lower-affine -convert-scf-to-cf -convert-index-to-llvm -convert-math-to-llvm -arith-expand -finalize-memref-to-llvm -llvm-request-c-wrappers -convert-math-to-libm -convert-func-to-llvm -reconcile-unrealized-casts -test-transform-dialect-erase-schedule -cse -mlir-print-ir-before-all /tmp/pydsl_bin__0dwb34u/tmpviqps_xp.mlir

Depending on the severity of the message,
compilation may fail entirely.
********************
// -----// IR Dump Before EmptyTensorElimination (eliminate-empty-tensors) //----- //

-mlir-print-ir-before-all causes mlir-opt to print to stderr, which PyDSL interprets as a warning, causing it to output the above block before actually printing the MLIR after each pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions