[Mlir-commits] [mlir] [mlir][gpu] Add 'cluster_stride' attribute to gpu.subgroup_reduce (PR #107142)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Sep 4 04:12:54 PDT 2024
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 cfd4c1805ead139f84a4465719c49cca53f07f27 7ad90e199deb1f11fdc737e1d7bf3916eb6d3c75 --extensions cpp -- mlir/lib/Dialect/GPU/IR/GPUDialect.cpp mlir/lib/Dialect/GPU/Transforms/SubgroupReduceLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
index bd3d5162bf..99bd874bb1 100644
--- a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
+++ b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
@@ -632,7 +632,8 @@ LogicalResult gpu::SubgroupReduceOp::verify() {
uint32_t stride = getClusterStride();
if (stride != 1 && !clusterSize) {
- return emitOpError() << "cluster stride can only be specified if cluster size is specified";
+ return emitOpError() << "cluster stride can only be specified if cluster "
+ "size is specified";
}
if (!llvm::isPowerOf2_32(stride)) {
return emitOpError() << "cluster stride " << stride
``````````
</details>
https://github.com/llvm/llvm-project/pull/107142
More information about the Mlir-commits
mailing list