diff options
author | Nathan Sidwell <nathan@acm.org> | 2016-01-06 15:47:14 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2016-01-06 15:47:14 +0000 |
commit | e9b596c13252df2f1cea3f27183e9969ede54fbd (patch) | |
tree | 945fd4e724f1c10ee1609968b449d1da268975fe /libgomp/openacc.h | |
parent | 7c961392a68dcf032ec75aa38a41b6ec7d8ec477 (diff) | |
download | gcc-e9b596c13252df2f1cea3f27183e9969ede54fbd.zip gcc-e9b596c13252df2f1cea3f27183e9969ede54fbd.tar.gz gcc-e9b596c13252df2f1cea3f27183e9969ede54fbd.tar.bz2 |
openacc.c (acc_on_device): Add routine pragma for C++ wrapper.
* openacc.c (acc_on_device): Add routine pragma for C++ wrapper.
* testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
From-SVN: r232104
Diffstat (limited to 'libgomp/openacc.h')
-rw-r--r-- | libgomp/openacc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgomp/openacc.h b/libgomp/openacc.h index 4595530..7ea8794 100644 --- a/libgomp/openacc.h +++ b/libgomp/openacc.h @@ -121,6 +121,7 @@ int acc_set_cuda_stream (int, void *) __GOACC_NOTHROW; /* Forwarding function with correctly typed arg. */ +#pragma acc routine seq inline int acc_on_device (acc_device_t __arg) __GOACC_NOTHROW { return acc_on_device ((int) __arg); |