[Openmp-commits] [PATCH] D101123: [OpenMP] Avoid reading uninitialized parallel level values

Johannes Doerfert via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Apr 23 08:48:46 PDT 2021


jdoerfert added a comment.

In D101123#2712248 <https://reviews.llvm.org/D101123#2712248>, @ggeorgakoudis wrote:

> Does this work correctly with a nested parallel region in SPMD mode? I think the zeroing-out of the parallel-level is needed for this case.

The parallel level in SPMD mode can never be zero. It is 1 in the beginning and then can only be higher as we enter serialized parallel regions (Inc/Dec level in *_serialized_parallel).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101123



More information about the Openmp-commits mailing list