Open Ghjk94522 opened 1 day ago
cc @zhanglx13
Does it work with an mlir file using the LLVMIR dialect? We're parsing the input as mlir here so I wouldn't expect llvm IR to parse correctly.
Does it work with an mlir file using the LLVMIR dialect? We're parsing the input as mlir here so I wouldn't expect llvm IR to parse correctly.
I can use ttir and ttgir to compile with IRSource class in compiler.py, but here I want to the llir is correct or not. So how can I test it? Maybe there is no api for this function(directly compile and run a llir)?
Describe the bug
When I use python/triton/compiler/compiler.py::compile to compile a llvm IR, I got a RuntimeError:
While the python script is:
and the llvm IR is
And I have checked the init func in IRSource class:
Maybe the
ir.parse_mlir_module
cannot parse the LLVM IR? Or it will just fail in amd backend?I have no nv GPU to test, maybe someone can help me or tell me is my code wrong?
Environment details
Triton: main branch commit id: d5ba6ac
GPU: AMD MI100