[clang] [flang] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)
Johannes Doerfert via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 11 14:49:59 PDT 2026
================
@@ -3804,9 +3801,14 @@ Error AMDGPUKernelTy::launchImpl(GenericDeviceTy &GenericDevice,
KernelArgs.DynCGroupMem);
}
+ // Increase to the requested dynamic memory size for the device if needed.
+ DynBlockMemSize =
+ std::max(DynBlockMemSize, GenericDevice.getDynamicMemorySize());
+
// Push the kernel launch into the stream.
return Stream->pushKernelLaunch(*this, AllArgs, NumThreads, NumBlocks,
- GroupSize, StackSize, ArgsMemoryManager);
+ getStaticBlockMemSize() + DynBlockMemSize,
----------------
jdoerfert wrote:
Do the addition before the launch stmt please.
https://github.com/llvm/llvm-project/pull/152831
More information about the cfe-commits
mailing list