[Openmp-commits] [openmp] [OpenMP] Address __kmp_dist_for_static_init issue (PR #129902)
Michael Klemm via Openmp-commits
openmp-commits at lists.llvm.org
Thu Mar 13 08:57:43 PDT 2025
mjklemm wrote:
> The example you shared where my patch would break is, as far as I understand, invalid OpenMP. This is because `teams` regions must be strictly nested within the implicit parallel region surrounding the whole program or a `target` region (5.2: 232, 5-6). So it doesn't look like it could fail in that way. But maybe I'm just misunderstanding this, so let me know.
Yes, that is correct. The sequence of directives that @jprotze shared should not be allowed as per the nesting rules for `teams`
https://github.com/llvm/llvm-project/pull/129902
More information about the Openmp-commits
mailing list