[Openmp-commits] [openmp] [OpenMP][DeviceRTL] Added omp_get_max_teams() on device (PR #67867)

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Fri Sep 29 21:09:50 PDT 2023


================
@@ -202,6 +204,7 @@ void state::ICVStateTy::assertEqual(const ICVStateTy &Other) const {
 
 void state::TeamStateTy::init(bool IsSPMD) {
   ICVState.NThreadsVar = 0;
+  ICVState.NTeamsVar = 0;
----------------
shiltian wrote:

I don't see how this var is updated among different target regions, so is it necessary to make it part of the team state? Also, I thought this value should be related to the nested level.

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


More information about the Openmp-commits mailing list