[all-commits] [llvm/llvm-project] 5adc7d: [OpenMP] Ignore teams ICV setters in restricted co...

Sairudra More via All-commits all-commits at lists.llvm.org
Tue Jun 9 09:31:39 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5adc7ddc15cdb39d0f2f8e1daa8ca21aaa374d3a
      https://github.com/llvm/llvm-project/commit/5adc7ddc15cdb39d0f2f8e1daa8ca21aaa374d3a
  Author: Sairudra More <sairudra60 at gmail.com>
  Date:   2026-06-09 (Tue, 09 Jun 2026)

  Changed paths:
    M openmp/runtime/src/i18n/en_US.txt
    M openmp/runtime/src/kmp_ftn_entry.h
    A openmp/runtime/test/api/omp_nteams_api_restriction.c

  Log Message:
  -----------
  [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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list