[llvm] [NVPTX] Add support for "blocksareclusters" kernel attr (PR #152265)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 14 20:01:43 PDT 2025
================
@@ -452,6 +456,13 @@ void NVPTXAsmPrinter::emitKernelFunctionDirectives(const Function &F,
"should be 0 as well");
}
}
+
+ if (BlocksAreClusters && STI->getPTXVersion() >= 90) {
+ assert(!(ReqNTID.empty() || getClusterDim(F).empty()) &&
+ "blocksareclusters requires reqntid and cluster_dim");
+ O << ".blocksareclusters\n";
+ }
----------------
AlexMaclean wrote:
It looks like DiagnosticInfoUnsupported doesn't require that you provide a debug location and at least that way you can provide the function which is problematic.
https://github.com/llvm/llvm-project/pull/152265
More information about the llvm-commits
mailing list