[all-commits] [llvm/llvm-project] 447109: [OpenMP][FIX] Data race in the SPMD execution of t...
Johannes Doerfert via All-commits
all-commits at lists.llvm.org
Thu Oct 7 18:01:47 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 44710940af5bed3c338c4c397c561bfb83790218
https://github.com/llvm/llvm-project/commit/44710940af5bed3c338c4c397c561bfb83790218
Author: Johannes Doerfert <johannes at jdoerfert.de>
Date: 2021-10-07 (Thu, 07 Oct 2021)
Changed paths:
M openmp/libomptarget/DeviceRTL/src/Parallelism.cpp
Log Message:
-----------
[OpenMP][FIX] Data race in the SPMD execution of the new runtime
We need to synchronize the threads *before* we destroy the RAII objects
that hold the old values and not after to avoid threads executing the
parallel region but seeing an inconsistent state.
Reviewed By: tianshilei1992
Differential Revision: https://reviews.llvm.org/D111369
More information about the All-commits
mailing list