summaryrefslogtreecommitdiff
path: root/libgomp/plugin
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2018-12-14 21:43:02 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2018-12-14 21:43:02 +0100
commitf847198ec32588beda29a03572a765f9f91b0644 (patch)
treefe3691f588a1fb4281a4e96daa9607b92f809a48 /libgomp/plugin
parentc8ab8aab9f93380f874e199366ad1badd1dd59a4 (diff)
[PR88495] An OpenACC async queue is always synchronized with itself
An OpenACC async queue is always synchronized with itself, so invocations like "#pragma acc wait(0) async(0)", or "acc_wait_async (0, 0)" don't make a lot of sense, but are still valid. libgomp/ PR libgomp/88495 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse "identical parameters". * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update. * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove. From-SVN: r267152
Diffstat (limited to 'libgomp/plugin')
-rw-r--r--libgomp/plugin/plugin-nvptx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c
index 6f9b16634b1..fb686de73f2 100644
--- a/libgomp/plugin/plugin-nvptx.c
+++ b/libgomp/plugin/plugin-nvptx.c
@@ -1617,8 +1617,9 @@ nvptx_wait_async (int async1, int async2)
necessarily have to exist already. */
s2 = select_stream_for_async (async2, self, true, NULL);
+ /* A stream is always synchronized with itself. */
if (s1 == s2)
- GOMP_PLUGIN_fatal ("identical parameters");
+ return;
e = (CUevent *) GOMP_PLUGIN_malloc (sizeof (CUevent));