OpenACC acc_on_device.
[official-gcc.git] / libgomp / openacc.h
blobcde7429c0cf93d5cb1575c7738b2316b503484f4
1 /* OpenACC Runtime Library Declarations
3 Copyright (C) 2013 Free Software Foundation, Inc.
5 Contributed by Thomas Schwinge <thomas@codesourcery.com>.
7 This file is part of the GNU OpenMP Library (libgomp).
9 Libgomp is free software; you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3, or (at your option)
12 any later version.
14 Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 more details.
19 Under Section 7 of GPL version 3, you are granted additional
20 permissions described in the GCC Runtime Library Exception, version
21 3.1, as published by the Free Software Foundation.
23 You should have received a copy of the GNU General Public License and
24 a copy of the GCC Runtime Library Exception along with this program;
25 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
26 <http://www.gnu.org/licenses/>. */
28 #ifndef _OPENACC_H
29 #define _OPENACC_H 1
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
35 #ifdef __cplusplus
36 # define __GOACC_NOTHROW throw ()
37 #else
38 # define __GOACC_NOTHROW __attribute__ ((__nothrow__))
39 #endif
41 typedef enum acc_device_t
43 acc_device_none = 0,
44 acc_device_default, /* This has to be a distinct value, as no
45 return value can match it. */
46 acc_device_host = 2,
47 acc_device_not_host = 3
48 } acc_device_t;
50 int acc_on_device (acc_device_t __dev) __GOACC_NOTHROW;
52 #ifdef __cplusplus
54 #endif
56 #endif /* _OPENACC_H */