Re: [OpenMP, nvptx] Use bar.sync/arrive for barriers when tasking is not used

2022-09-01 Thread Jakub Jelinek via Gcc-patches
On Thu, Sep 01, 2022 at 11:39:42PM +0800, Chung-Lin Tang wrote: > our work on SPEChpc2021 benchmarks show that, after the fix for PR99555 was > committed: > [libgomp, nvptx] Fix hang in gomp_team_barrier_wait_end > https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=5ed77fb3ed1ee0289a0ec9499ef52b99b394

[OpenMP, nvptx] Use bar.sync/arrive for barriers when tasking is not used

2022-09-01 Thread Chung-Lin Tang
sk_lock); + if (team->barrier.generation & BAR_CANCELLED) +{ + gomp_mutex_unlock (&team->task_lock); + return; +} + team->barrier.generation |= BAR_CANCELLED; + gomp_mutex_unlock (&team->task_lock); + futex_wake ((int *) &team->barrier.generation, INT_MAX); +} -- 2.8.1