diff --git a/libgomp/oacc-parallel.c b/libgomp/oacc-parallel.c index e1ea2c62c44..d0e5f949fb0 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