huizhanyi wrote:"The OpenMP memory model says that whenever you have a race, such as in example A.2.2's use of "flag" for synchronization, the values returned by the reads involved in the race are undefined. "
Can you give more details about what race has happened when we use "flag" for synchronization in this example?
"I will send a note to the experts and see if I can get them to explain it."
Thank you and wish your explanation.
"The overall feeling though, is that the use of flush is extremely hard to get correct and that we need to do a better job at providing the users with something to allow synchronization to be done more easily."
The method in the examples were often used for synchronization in the past, and so some persons, maybe experts in OMP, is surprised when the examples are deemed wrong.
Users browsing this forum: Yahoo [Bot] and 4 guests