[Openmp-commits] [openmp] [OpenMP][AMDGPU] Adapt dynamic callstack sizes to HIP behavior (PR #74080)

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Mon Dec 4 10:27:15 PST 2023


================
@@ -3198,7 +3233,8 @@ Error AMDGPUKernelTy::launchImpl(GenericDeviceTy &GenericDevice,
 
   // Push the kernel launch into the stream.
   return Stream->pushKernelLaunch(*this, AllArgs, NumThreads, NumBlocks,
-                                  GroupSize, StackSize, ArgsMemoryManager);
+                                  GroupSize, static_cast<uint32_t>(StackSize),
----------------
jdoerfert wrote:

Change it to uint32_t everywhere instead. Let's assume we stop at 4GB stack size.

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


More information about the Openmp-commits mailing list