[Mlir-commits] [mlir] [mlir][sparse] support BSR for cuSPARSE (libgen path only) (PR #69646)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Oct 19 15:06:59 PDT 2023


github-actions[bot] wrote:


<!--LLVM CODE FORMAT COMMENT: {clang-format}-->

:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff e353cd8173db939af22a6fd90705e35fbadb01a7 ea861d7daaad51013b69560cf8e8eb31ef9b06ca -- mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp
index e411032e1c1c..2cc4d3cee950 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseGPUCodegen.cpp
@@ -435,7 +435,7 @@ static bool isAdmissibleBSR(SparseTensorType &aTp) {
       aTp.isDenseLvl(2) && aTp.isDenseLvl(3) && isAdmissibleMetaData(aTp)) {
     // CuSparse only supports "square" blocks currently.
     SmallVector<unsigned> dims = getBlockSize(aTp.getDimToLvl());
-    assert (dims.size() == 2);
+    assert(dims.size() == 2);
     return dims[0] = dims[1];
   }
   return false;

``````````

</details>


https://github.com/llvm/llvm-project/pull/69646


More information about the Mlir-commits mailing list