On 21/01/2021 7:33 pm, Kwok Cheung Yeung wrote: > With Nvidia and GCN offloading though, task-detach-6 hangs... I _think_ the > reason why it 'worked' before was because the taskwait allowed tasks with detach > clauses to always complete immediately after execution. Since that backdoor has > been closed, task-detach-6 hangs with or without the taskwait. It turns out that the hang is because the team barrier threads fail to wake up when gomp_team_barrier_wake is called from omp_fulfill_event, because it was done while task_lock was held. When the lock is freed first, the wake works as expected and the test completes. Is this patch okay for trunk (to be squashed into the previous patch)? Thanks Kwok