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

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Sat Sep 30 13:08:48 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;
----------------
jdoerfert wrote:

I don't think right now we can update it on the device. That said, once teams doesn't have to be nested strictly, one might be able to set it. I'm fine with an ICV for now. The initialization, via OMP_NUM_TEAMS_DEV_<N>, is going to be a follow up. 

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


More information about the Openmp-commits mailing list