[OpenMP] Sync writes to child thread's data before reduction
On systems with weak memory consistency, this patch fixes an intermittent crash in the reduction function called by __kmp_hyper_barrier_gather, which suffers from a race on a child thread's data. Reviewed-By: AndreyChurbanov Differential Revision: https://reviews.llvm.org/D77603
parent
15754acc
Please register or sign in to comment