[Openmp-commits] [PATCH] D111949: [OpenMP][FIX] Do check the level before return team size

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 18 01:25:25 PDT 2021


protze.joachim added inline comments.


================
Comment at: openmp/libomptarget/DeviceRTL/src/State.cpp:448-450
+int omp_get_num_threads(void) {
+  return omp_get_level() > 1 ? 1 : state::ParallelTeamSize;
+}
----------------
is state::ParallelTeamSize = 1 for level=0? Probably change to checking for ActiveLevel?



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111949/new/

https://reviews.llvm.org/D111949



More information about the Openmp-commits mailing list