https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100573

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #1)
> Created attachment 50803 [details]
> Reduced testcase - works with hostfall back but fails with GCN and nvptx

Is this not an invalid test-case?

The semantics of omp teams is:
...
The teams construct creates a league of thread teams and the master thread of
each team executes the region.
...

So, given that there is no distribution of the work over all the teams, the
master thread of each team updates the entire array.

That is, is this not just a question of missing distribution keyword?

Reply via email to