[Mlir-commits] [mlir] [MLIR][NVVM] Add "blocksareclusters" kernel attribute support (PR #154519)
Rajat Bajpai
llvmlistbot at llvm.org
Wed Aug 20 05:53:18 PDT 2025
================
@@ -1922,6 +1922,15 @@ LogicalResult NVVMDialect::verifyOperationAttribute(Operation *op,
return op->emitError()
<< "'" << attrName << "' attribute must be integer constant";
}
+ // blocksareclusters must be used along with reqntid and cluster_dim
+ if (attrName == NVVMDialect::getBlocksAreClustersAttrName()) {
+ if (!op->hasAttr(NVVMDialect::getReqntidAttrName()) ||
+ !op->hasAttr(NVVMDialect::getClusterDimAttrName()))
+ return op->emitError()
+ << "'" << attrName << "' attribute must be used along with "
+ << "'" << NVVMDialect::getReqntidAttrName() << "' and "
+ << "'" << NVVMDialect::getClusterDimAttrName() << "'";
----------------
rajatbajpai wrote:
Above if conditions are also not using {}.
They are formatted to multi line.
https://github.com/llvm/llvm-project/pull/154519
More information about the Mlir-commits
mailing list