[Openmp-commits] [PATCH] D121262: [OpenMP][CUDA] Clean up the logic to initialize the limit and default number for teams and threads.

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 8 15:31:26 PST 2022


tianshilei1992 added inline comments.


================
Comment at: openmp/libomptarget/plugins/cuda/src/rtl.cpp:1151
     unsigned int CudaBlocksPerGrid;
     if (TeamNum <= 0) {
       if (LoopTripCount > 0 && EnvNumTeams < 0) {
----------------
If both `num_teams` and `OMP_NUM_TEAMS` exist, which one to honor?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121262



More information about the Openmp-commits mailing list