Skip to content

catalyst CLI tool hangs without input file #2411

@kipawaa

Description

@kipawaa

Issue

When calling catalyst --list-passes I noticed that the command hangs rather than perform the desired action. This happens as well when called directly with catalyst. When provided an input file (catalyst --list-passes test.mlir), the command runs but the file is optimized and no passes are listed.

Expected behaviour

I would expect behaviour similar to quantum-opt, which when called directly listens to stdin for mlir to process, or an error to be raised.

MRE

./mlir/build/bin/catalyst from project root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompilerPull requests that update the compilergood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions