[all-commits] [llvm/llvm-project] 6542e5: [flang][OpenMP] Move privatizations out of section...

Leandro Lupori via All-commits all-commits at lists.llvm.org
Mon May 6 09:14:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6542e5663d1e599d5ed7c961842ce2fcdc9f5090
      https://github.com/llvm/llvm-project/commit/6542e5663d1e599d5ed7c961842ce2fcdc9f5090
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2024-05-06 (Mon, 06 May 2024)

  Changed paths:
    M flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
    M flang/lib/Lower/OpenMP/OpenMP.cpp
    M flang/test/Lower/OpenMP/sections.f90

  Log Message:
  -----------
  [flang][OpenMP] Move privatizations out of sections (#88191)

Besides duplicating code, privatizing variables in every section
causes problems when synchronization barriers are used. This
happens because each section is executed by a given thread, which
will cause the program to hang if not all running threads execute
the barrier operation.

Fixes https://github.com/llvm/llvm-project/issues/72824



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