I am trying to checkpoint an OpenMP program and I have a doubt with the reduction clause.
For example, the next code:
!$OMP PARALLEL DO REDUCTION(+:sum)
Does it print all the partial sums in each thread or is the variable sum undefined in that point?
I have executed that code in my machine and it prints the partial sums but I am not sure if this is the behaviour for any OpenMP implementation.
Thanks in advance for your help.