[Openmp-commits] [openmp] [Libomptarget] Handle dynamic stack sizes for AMD COV5 (PR #72606)

Matt Arsenault via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 16 20:49:59 PST 2023


================
@@ -658,7 +664,8 @@ struct AMDGPUQueueTy {
     Packet->grid_size_x = NumBlocks * NumThreads;
     Packet->grid_size_y = 1;
     Packet->grid_size_z = 1;
-    Packet->private_segment_size = Kernel.getPrivateSize();
+    Packet->private_segment_size =
+        Kernel.usesDynamicStack() ? Kernel.getPrivateSize() : StackSize;
----------------
arsenm wrote:

Naming here is kind of confusing. For the most part "private size" and "stack size" are the same thing 

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


More information about the Openmp-commits mailing list