Skip to content

Commit e35b606

Browse files
authored
[mlir][sparsifier] fix isAdmissibleBSR (llvm#72195)
Fixes llvm#72194.
1 parent c81bfc6 commit e35b606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ static bool isAdmissibleBSR(SparseTensorType &aTp) {
436436
// CuSparse only supports "square" blocks currently.
437437
SmallVector<unsigned> dims = getBlockSize(aTp.getDimToLvl());
438438
assert(dims.size() == 2);
439-
return dims[0] = dims[1] && dims[0] > 1;
439+
return dims[0] == dims[1] && dims[0] > 1;
440440
}
441441
return false;
442442
}

0 commit comments

Comments
 (0)