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.
(cherry picked from commit
b5037d4a073f2e4625afab5ec1f35624d9f9eba1)
Backported from master:
2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
+ * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
+ shortcut.
+
+ Backported from master:
+ 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
+
* testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
another aspect of OpenACC 'async' semantics.
break;
}
- if (acc_async_test (qid))
- continue;
-
if (async == acc_async_sync)
acc_wait (qid);
else if (qid == async)