mirror-llvm-project/openmp
Sairudra More 5adc7ddc15
[OpenMP] Ignore teams ICV setters in restricted contexts (#194428)
This patch prevents `omp_set_num_teams()` and
`omp_set_teams_thread_limit()` from updating teams-related ICVs when
called from restricted runtime contexts.

The non-implicit parallel-region case follows the OpenMP 5.1
restriction. The active `teams`-region case is handled defensively
because these ICVs are device-scoped and updating them during an active
`teams` region can affect later teams execution.

The calls now warn and return without updating the ICVs. 

Fixes #194426.
2026-06-09 11:31:17 -05:00
..
cmake [Flang] Move builtin .mod generation into runtimes (Reapply #137828) (#171515) 2026-05-29 10:50:52 +02:00
device [libc] Demote compiler check error to a warning (#198033) 2026-05-18 10:08:44 -05:00
docs Revert "[docs] update CI to use latest release of doxygen" (#202412) 2026-06-08 15:28:03 -04:00
libompd [OpenMP] Fix missing install-openmp component (#197603) 2026-05-15 07:37:18 -05:00
module [Runtimes] Drop 'flang' from runtimes configure dependency (#198205) 2026-06-08 08:47:04 -05:00
runtime [OpenMP] Ignore teams ICV setters in restricted contexts (#194428) 2026-06-09 11:31:17 -05:00
tools [openmp][omptest] Include cstdlib for malloc() (#202021) 2026-06-06 10:46:45 +01:00
.gitignore
CMakeLists.txt [Flang] Move builtin .mod generation into runtimes (Reapply #137828) (#171515) 2026-05-29 10:50:52 +02:00
CREDITS.txt
LICENSE.TXT
Maintainers.md Nominate Michael Klemm as lead maintainer of OpenMP (#175964) 2026-01-14 15:17:26 +00:00