[Mlir-commits] [mlir] [mlir][sparsifier] fix `isAdmissibleBSR` (PR #72195)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Nov 13 18:45:07 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Maksim Levental (makslevental)
<details>
<summary>Changes</summary>
Fixes https://github.com/llvm/llvm-project/issues/72194.
---
Full diff: https://github.com/llvm/llvm-project/pull/72195.diff
1 Files Affected:
- (modified) mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp (+1-1)
``````````diff
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp
index fb090890a46dfd5..927fc71f84a85a8 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp
@@ -436,7 +436,7 @@ static bool isAdmissibleBSR(SparseTensorType &aTp) {
// CuSparse only supports "square" blocks currently.
SmallVector<unsigned> dims = getBlockSize(aTp.getDimToLvl());
assert(dims.size() == 2);
- return dims[0] = dims[1] && dims[0] > 1;
+ return dims[0] == dims[1] && dims[0] > 1;
}
return false;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/72195
More information about the Mlir-commits
mailing list