[Bug libgomp/98738] task-detach-6.f90 hangs intermittently

2021-03-11 Thread kcy at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98738 --- Comment #15 from Kwok Yeung --- (In reply to Thomas Schwinge from comment #13) > Kwok, it seems -- at least in my testing -- that your latest commit > d656bfda2d8316627d0bbb18b10954e6aaf3c88c "openmp: Fix intermittent hanging > of task-detach

[Bug libgomp/98738] task-detach-6.f90 hangs intermittently

2021-01-21 Thread kcy at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98738 --- Comment #9 from Kwok Yeung --- I have a patch for this now. In addition to posting other semaphores in omp_fulfill_event, GOMP_taskwait also needs to be made aware of detached tasks. Also, task_running_count should not include completed tasks

[Bug libgomp/98738] task-detach-6.f90 hangs intermittently

2021-01-19 Thread kcy at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98738 --- Comment #6 from Kwok Yeung --- It seems to be the '#pragma omp taskwait' inside the parallel region that is causing the intermittent hang - if you add it to task-detach-5.c, the hang also happens there (i.e. the target construct is not the pr