Skip to content

[MLIR, CompileDriver] Run entry point signature detection only if needed  #326

Open
@sergei-mironov

Description

@sergei-mironov

Currently compile driver always attempts to detect the entry point signature (see getJITFunction) and prints messages if it can't find one, which is is only relevant for IR string input. Usually we compile Python functions where we already know signatures by design. The suggestions are:

  • Change the compiler driver API so we can explicitly ask it to run the inference, and only run it if asked
  • Maybe find a better name for this function (JIT used to be the prefix of our entry points, but we changed this)
  • Maybe also unify the verbose printing mechanisms, namely emitDIag/emitRemark of MLIR and our own CO_MSG macros. Note, that we might want to keep CO_MSG because emit*s alone get overly verbose when stack traces are enabled. Ref [MLIR] Disable printing stack traces on the entry point search remark #317

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions