]> git.ipfire.org Git - thirdparty/gcc.git/commit
Don't use libgomp 'cbuf' buffering with OpenACC 'async'
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 23 Jul 2021 20:01:32 +0000 (22:01 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 27 Jul 2021 09:16:37 +0000 (11:16 +0200)
commitd88a6951586c7229b25708f4486eaaf4bf4b5bbe
tree3b9ed82732e4e669aa68a9c40bdfcfe131e43bd9
parent9c41f5b9cddd93f1b56eb71bff87b255d37d16f4
Don't use libgomp 'cbuf' buffering with OpenACC 'async'

The host data might not be computed yet (by an earlier asynchronous compute
region, for example.

libgomp/
* target.c (gomp_coalesce_buf_add): Update comment.
(gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
'aq && cbuf'.
(gomp_map_vars_internal): Only 'if (!aq)', do
'gomp_coalesce_buf_add'.
* testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
XFAIL.

Co-Authored-By: Julian Brown <julian@codesourcery.com>
libgomp/target.c
libgomp/testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c