[Openmp-commits] [openmp] [clang] [OpenMP][FIX] Allocate per launch memory for GPU team reductions (PR #70752)

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 1 09:36:26 PDT 2023


================
@@ -194,6 +191,9 @@ int32_t __kmpc_nvptx_teams_reduce_nowait_v2(
     ThreadId = 0;
   }
 
+  uint32_t &IterCnt = state::getKernelLaunchEnvironment().ReductionIterCnt;
+  uint32_t &Cnt = state::getKernelLaunchEnvironment().ReductionCnt;
----------------
jdoerfert wrote:

They are, I replaced the globals with them.

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


More information about the Openmp-commits mailing list