aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgomp/oacc-parallel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/oacc-parallel.c b/libgomp/oacc-parallel.c
index e1ea2c6..d0e5f94 100644
--- a/libgomp/oacc-parallel.c
+++ b/libgomp/oacc-parallel.c
@@ -436,7 +436,7 @@ GOACC_wait (int async, int num_waits, ...)
else if (async == acc_async_sync)
acc_wait_all ();
else if (async == acc_async_noval)
- acc_dev->openacc.async_wait_all_async_func (acc_async_noval);
+ goacc_thread ()->dev->openacc.async_wait_all_async_func (acc_async_noval);
}
int