[openacc] Factor out async argument utility functions
authorTom de Vries <tom@codesourcery.com>
Wed, 9 May 2018 13:52:49 +0000 (13:52 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 9 May 2018 13:52:49 +0000 (13:52 +0000)
commitedbd038a5f0f903cacb549f09b1d992c4222ca10
tree09f3372550d0a9f29fae94eb1220e3609cca1b1e
parent88b1e41c2d9d2e9f5c0ae2d1a09da41d76184280
[openacc] Factor out async argument utility functions

2018-05-09  Tom de Vries  <tom@codesourcery.com>

PR libgomp/83792
* oacc-int.h (async_valid_stream_id_p, async_valid_p)
(async_synchronous_p): New function.
* oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
async_valid_p.
* oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
async_valid_stream_id_p.
* oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
* oacc-parallel.c (GOACC_parallel_keyed): Same.

From-SVN: r260081
libgomp/ChangeLog
libgomp/oacc-async.c
libgomp/oacc-cuda.c
libgomp/oacc-int.h
libgomp/oacc-mem.c
libgomp/oacc-parallel.c