diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2023-02-24 16:17:57 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2023-03-10 15:37:47 +0100 |
commit | b5037d4a073f2e4625afab5ec1f35624d9f9eba1 (patch) | |
tree | 325e39d1b069fb3d72456bfe48a1d0cec82cdecb | |
parent | 442d51a20ef13a8e6c080ca30bc37fc93b6bfac4 (diff) | |
download | gcc-b5037d4a073f2e4625afab5ec1f35624d9f9eba1.zip gcc-b5037d4a073f2e4625afab5ec1f35624d9f9eba1.tar.gz gcc-b5037d4a073f2e4625afab5ec1f35624d9f9eba1.tar.bz2 |
OpenACC: Remove 'acc_async_test' -> skip shortcut in 'libgomp/oacc-async.c:goacc_wait'
We're not taking such a shortcut anywhere else, and (with future changes) it
has potential to confuse things if synchronization in a libgomp plugin happens
to have side effects even if an async queue currently is empty.
libgomp/
* oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
shortcut.
-rw-r--r-- | libgomp/oacc-async.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libgomp/oacc-async.c b/libgomp/oacc-async.c index 2562afb..82d00b6 100644 --- a/libgomp/oacc-async.c +++ b/libgomp/oacc-async.c @@ -410,9 +410,6 @@ goacc_wait (int async, int num_waits, va_list *ap) break; } - if (acc_async_test (qid)) - continue; - if (async == acc_async_sync) acc_wait (qid); else if (qid == async) |