[flang-commits] [flang] [llvm] [mlir] [flang][mlir][OpenMP] Add support for COPYPRIVATE (PR #73128)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Fri Mar 8 03:55:16 PST 2024


luporl wrote:

> > Only one thread prints 1, all the others print 0. In this case the sync variable will indeed end up in a "private" thread stack, instead of the "shared" stack. So with this approach a global sync variable would be needed instead. Thanks for catching this.
> 
> Hi @luporl Is this issue resolved? I see it is still giving the wrong output. could you please confirm?

@harishch4 It should be resolved, since now we're using `__kmpc_copyprivate` instead, but I'm also getting the wrong output with a flang build from yesterday. I'll investigate this issue, thanks for reporting it.

https://github.com/llvm/llvm-project/pull/73128


More information about the flang-commits mailing list