The OpenMP Forums are now closed to new posts. Please visit Stack Overflow if you are in need of help: https://stackoverflow.com/questions/tagged/openmp
"To avoid race conditions, all accesses of the locations designated by x that could
potentially occur in parallel must be protected with an atomic construct."
I think "race conditions" should be "data races". They are two different things.
See for example https://blog.regehr.org/archives/490