mirror of git://gcc.gnu.org/git/gcc.git
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.
This commit is contained in:
parent
442d51a20e
commit
b5037d4a07
|
@ -410,9 +410,6 @@ goacc_wait (int async, int num_waits, va_list *ap)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (acc_async_test (qid))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (async == acc_async_sync)
|
if (async == acc_async_sync)
|
||||||
acc_wait (qid);
|
acc_wait (qid);
|
||||||
else if (qid == async)
|
else if (qid == async)
|
||||||
|
|
Loading…
Reference in New Issue