Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: LoadOp expects a memref, not a memref of pointers #13

Open
manbearian opened this issue Oct 13, 2023 · 0 comments
Open

error: LoadOp expects a memref, not a memref of pointers #13

manbearian opened this issue Oct 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@manbearian
Copy link
Collaborator

created from #7.

I'm unsure of the nature of this failure; further investigation is needed.

repros.zip

triton-shared-opt -triton-to-linalg 1.mlir
triton-shared-opt -triton-to-linalg 40.mlir
triton-shared-opt -triton-to-linalg 60.mlir
triton-shared-opt -triton-to-linalg 71.mlir
triton-shared-opt -triton-to-linalg 73.mlir

Error output:

+++/home/ianb/test/ttirs_linalg_failed/1.mlir
/home/ianb/test/ttirs_linalg_failed/1.mlir:33:11: error: LoadOp expects a memref, not a memref of pointers
    %22 = tt.load %21 {cache = 1 : i32, evict = 3 : i32, isVolatile = false} : tensor<1xf32>
          ^
/home/ianb/test/ttirs_linalg_failed/1.mlir:33:11: note: see current operation: %109 = "tt.load"(%108) <{cache = 1 : i32, evict = 3 : i32, isVolatile = false, operand_segment_sizes = array<i32: 1, 0, 0>}> : (tensor<1x!tt.ptr<f32, 1>>) -> tensor<1xf32>
/home/ianb/test/ttirs_linalg_failed/1.mlir:33:11: error: failed to legalize operation 'tt.load'
    %22 = tt.load %21 {cache = 1 : i32, evict = 3 : i32, isVolatile = false} : tensor<1xf32>
          ^
/home/ianb/test/ttirs_linalg_failed/1.mlir:33:11: note: see current operation: %109 = "tt.load"(%108) <{cache = 1 : i32, evict = 3 : i32, isVolatile = false, operand_segment_sizes = array<i32: 1, 0, 0>}> : (tensor<1x!tt.ptr<f32, 1>>) -> tensor<1xf32>
@manbearian manbearian added the bug Something isn't working label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant