None of the MLIR Optimization Passes are enabled (registered 2)
时间: 2023-12-03 18:43:56
浏览: 206
This error message suggests that you are trying to run an MLIR-based tool or application without any optimization passes enabled. MLIR is a compiler infrastructure that provides a framework for building domain-specific compilers and optimizing compilers. Optimization passes are an essential part of the MLIR compiler stack, as they transform the input program into an equivalent, but more efficient one.
To resolve this issue, you need to enable at least one optimization pass in your MLIR-based tool or application. You can do this by specifying the optimization passes that you want to run via command-line arguments or configuration files.
For example, if you are using the MLIR command-line to