Add device number to GOMP_OFFLOAD_openacc_async_construct
authorAndrew Stubbs <ams@codesourcery.com>
Wed, 13 Nov 2019 12:37:59 +0000 (12:37 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Wed, 13 Nov 2019 12:37:59 +0000 (12:37 +0000)
commitd2903ce05bf055daeafe14e8b0b2be133ce180be
tree575a571c8a489083b17dc60bb57a3f8890e81f5f
parent15e9e6795d044364c9d852f48665778c96728955
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
libgomp/ChangeLog
libgomp/libgomp-plugin.h
libgomp/oacc-async.c
libgomp/oacc-host.c
libgomp/plugin/plugin-nvptx.c