diff options
author | Andrew Stubbs <ams@codesourcery.com> | 2019-11-13 12:37:59 +0000 |
---|---|---|
committer | Andrew Stubbs <ams@gcc.gnu.org> | 2019-11-13 12:37:59 +0000 |
commit | d2903ce05bf055daeafe14e8b0b2be133ce180be (patch) | |
tree | 575a571c8a489083b17dc60bb57a3f8890e81f5f /libgomp/plugin | |
parent | 15e9e6795d044364c9d852f48665778c96728955 (diff) | |
download | gcc-d2903ce05bf055daeafe14e8b0b2be133ce180be.zip gcc-d2903ce05bf055daeafe14e8b0b2be133ce180be.tar.gz gcc-d2903ce05bf055daeafe14e8b0b2be133ce180be.tar.bz2 |
Add device number to GOMP_OFFLOAD_openacc_async_construct
2019-11-13 Andrew Stubbs <ams@codesourcery.com>
Julian Brown <julian@codesourcery.com>
libgomp/
* libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
parameter.
* oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
queue constructor.
* oacc-host.c (host_openacc_async_construct): Add device parameter.
* plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
device parameter.
Co-Authored-By: Julian Brown <julian@codesourcery.com>
From-SVN: r278134
Diffstat (limited to 'libgomp/plugin')
-rw-r--r-- | libgomp/plugin/plugin-nvptx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c index 9e08861..911d0f6 100644 --- a/libgomp/plugin/plugin-nvptx.c +++ b/libgomp/plugin/plugin-nvptx.c @@ -1575,7 +1575,7 @@ GOMP_OFFLOAD_openacc_cuda_set_stream (struct goacc_asyncqueue *aq, void *stream) } struct goacc_asyncqueue * -GOMP_OFFLOAD_openacc_async_construct (void) +GOMP_OFFLOAD_openacc_async_construct (int device __attribute__((unused))) { CUstream stream = NULL; CUDA_CALL_ERET (NULL, cuStreamCreate, &stream, CU_STREAM_DEFAULT); |