aboutsummaryrefslogtreecommitdiff
path: root/libgomp/openacc.h
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-06 15:47:14 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-06 15:47:14 +0000
commit1d1e4d6b346e1cddc3c249993d8391a971e608cc (patch)
tree945fd4e724f1c10ee1609968b449d1da268975fe /libgomp/openacc.h
parent371db734bc7f4b5faee36029b971ba1cb44a9607 (diff)
* openacc.c (acc_on_device): Add routine pragma for C++ wrapper.
* testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232104 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/openacc.h')
-rw-r--r--libgomp/openacc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgomp/openacc.h b/libgomp/openacc.h
index 45955306c4a..7ea87945839 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);