Rahul Kayaith
Rahul Kayaith
In order to support scan outputs with dynamic shape, I prototyped an approach that lowered to this structure: ``` result_init = empty((0,)) // size-0 tensor result = for(..., result_prev =...
IR before the crashing pass: ```mlir module { util.func public @main$async(%arg0: !hal.buffer_view, %arg1: !hal.fence, %arg2: !hal.fence) -> !hal.buffer_view attributes {inlining_policy = #util.inline.never, iree.abi.model = "coarse-fences", iree.abi.stub} { %c0 = arith.constant...
I've hit a couple issues here. For reference this is the source IR, after running it through `iree-compile --compile-to=input`: ```mlir module @module { util.func public @main$async(%arg0: !hal.buffer_view, %arg1: !hal.fence, %arg2:...
> I was also not able to reproduce your compilation/run commands, which I think is a fault with the input file, because it actually doesn't return any tensor and takes...
> The mask is Rank-2. Could you share how you generated the first IR? The IR is generated through hipDNN using fusili, though I don't have an great way to...
Op support added in https://github.com/llvm/torch-mlir/pull/4482, but this exposed some downstream issues which prevent this from fully working: https://github.com/llvm/torch-mlir/issues/4479, https://github.com/llvm/torch-mlir/issues/4480
Two more inputs with the same error: test_multiheadattention_fastpath_fp16_head_dim_alignment (Q, K, V: [B=8, H=16, S=32, D=6]) PyTorch test: https://github.com/pytorch/pytorch/blob/6af13031e55a1f824b4cabe23b733e8ad4e9a24c/test/test_transformers.py#L384 ```mlir module @module { func.func private @sdpa_fprop( %arg0: !torch.vtensor, %arg1: !torch.vtensor, %arg2:...
This should be fixed by https://github.com/llvm/llvm-project/commit/32b3f13337ef0bf747705d058f4772c7fdabd736
Is this fully resolved? At HEAD I'm seeing that the `-test-patterns` pass used in this test doesn't re-order the constants, but `-canonicalize` still does: https://github.com/llvm/llvm-project/blob/098e80707413bebfe804ed5a1a500e623d6236b8/mlir/test/Transforms/test-operation-folder.mlir#L26
ed90f8026e45b9f922002ad03c6f37c4881be1d8 fixed this