mirror of
https://github.com/ROCm/ROCm.git
synced 2026-02-21 03:00:39 -05:00
[`mlir-reduce`](https://mlir.llvm.org/docs/Tools/mlir-reduce/) is a tool to reduce the complexity of bug reproducers written in mlir. Similar to `triton-opt`, `triton` needs to have its own version with the dialects registered properly for it to work.
12 lines
303 B
C++
12 lines
303 B
C++
#include "./RegisterTritonDialects.h"
|
|
|
|
#include "mlir/Tools/mlir-reduce/MlirReduceMain.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
mlir::DialectRegistry registry;
|
|
registerTritonDialects(registry);
|
|
|
|
mlir::MLIRContext context(registry);
|
|
return mlir::failed(mlir::mlirReduceMain(argc, argv, context));
|
|
}
|