[PR88484] OpenACC wait directive without wait argument but with async clause

Programming / Compilers / GCC - tschwinge [138bc75d-0d04-0410-961f-82ee72b054a4] - 14 December 2018 20:42 EST

We don't correctly handle "#pragma acc wait async (a)" for "a >= 0", handling as a no-op whereas it should enqueue the appropriate wait operations on "async (a)".

libgomp/ PR libgomp/88484
- oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
- testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.

44b7d2b9c1b [PR88484] OpenACC wait directive without wait argument but with async clause
libgomp/ChangeLog | 4 ++
libgomp/oacc-parallel.c | 4 +-
.../libgomp.oacc-c-c++-common/asyncwait-nop-1.c | 78 ++++++++++++++++++++++
3 files changed, 84 insertions(+), 2 deletions(-)

Upstream: gcc.gnu.org


  • Share