We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To reproduce, simply apply the attached patch and run test sparse_rewrite_sort_coo.mlir.
sparse_rewrite_sort_coo.mlir
The patch to apply:
diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_rewrite_sort_coo.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_rewrite_sort_coo.mlir index c3bdc30e355b..7e03451f1b8e 100644 --- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_rewrite_sort_coo.mlir +++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_rewrite_sort_coo.mlir @@ -99,9 +99,9 @@ module { // CHECK: ( 9, 9, 4, 7, 2 ) // CHECK: ( 7, 8, 10, 9, 6 ) // CHECK: ( 7, 4, 7, 9, 5 ) - call @storeValuesToStrided(%x0, %c10, %c2, %c1, %c5, %c1) + call @storeValuesToStrided(%x1, %c10, %c2, %c1, %c5, %c1) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> () - call @storeValuesToStrided(%x1, %c1, %c1, %c3, %c10, %c3) + call @storeValuesToStrided(%x0, %c1, %c1, %c3, %c10, %c3) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> () call @storeValuesToStrided(%x2, %c2, %c4, %c9, %c7, %c9) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> () @@ -127,9 +127,9 @@ module { // CHECK: ( 9, 9, 4, 7, 2 ) // CHECK: ( 8, 7, 10, 9, 6 ) // CHECK: ( 4, 7, 7, 9, 5 ) - call @storeValuesToStrided(%x0, %c10, %c2, %c1, %c5, %c1) + call @storeValuesToStrided(%x1, %c10, %c2, %c1, %c5, %c1) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> () - call @storeValuesToStrided(%x1, %c1, %c1, %c3, %c10, %c3) + call @storeValuesToStrided(%x0, %c1, %c1, %c3, %c10, %c3) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> () call @storeValuesToStrided(%x2, %c2, %c4, %c9, %c7, %c9) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> ()
The text was updated successfully, but these errors were encountered:
@llvm/issue-subscribers-mlir-sparse
diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_rewrite_sort_coo.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_rewrite_sort_coo.mlir index c3bdc30e355b..7e03451f1b8e 100644 --- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_rewrite_sort_coo.mlir +++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_rewrite_sort_coo.mlir @@ -99,9 +99,9 @@ module { // CHECK: ( 9, 9, 4, 7, 2 ) // CHECK: ( 7, 8, 10, 9, 6 ) // CHECK: ( 7, 4, 7, 9, 5 ) - call @<!-- -->storeValuesToStrided(%x0, %c10, %c2, %c1, %c5, %c1) + call @<!-- -->storeValuesToStrided(%x1, %c10, %c2, %c1, %c5, %c1) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> () - call @<!-- -->storeValuesToStrided(%x1, %c1, %c1, %c3, %c10, %c3) + call @<!-- -->storeValuesToStrided(%x0, %c1, %c1, %c3, %c10, %c3) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> () call @<!-- -->storeValuesToStrided(%x2, %c2, %c4, %c9, %c7, %c9) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> () @@ -127,9 +127,9 @@ module { // CHECK: ( 9, 9, 4, 7, 2 ) // CHECK: ( 8, 7, 10, 9, 6 ) // CHECK: ( 4, 7, 7, 9, 5 ) - call @<!-- -->storeValuesToStrided(%x0, %c10, %c2, %c1, %c5, %c1) + call @<!-- -->storeValuesToStrided(%x1, %c10, %c2, %c1, %c5, %c1) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> () - call @<!-- -->storeValuesToStrided(%x1, %c1, %c1, %c3, %c10, %c3) + call @<!-- -->storeValuesToStrided(%x0, %c1, %c1, %c3, %c10, %c3) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> () call @<!-- -->storeValuesToStrided(%x2, %c2, %c4, %c9, %c7, %c9) : (memref<?xi32, strided<[4], offset: ?>>, i32, i32, i32, i32, i32) -> ()
Sorry, something went wrong.
[mlir][sparse] fix logical error when generating sort_coo. (#66690)
4176ce6
To fix issue: #66664
[mlir][sparse] fix logical error when generating sort_coo. (llvm#66690)
ca1ce66
To fix issue: llvm#66664
bixia1
PeimingLiu
aartbik
No branches or pull requests
To reproduce, simply apply the attached patch and run test
sparse_rewrite_sort_coo.mlir
.The patch to apply:
The text was updated successfully, but these errors were encountered: