OpenACC acc_on_device.
[official-gcc.git] / libgomp / openacc.f90
blob70b58d6949afb38f921e28f7854aaa93e99f9273
1 ! OpenACC Runtime Library Definitions.
3 ! Copyright (C) 2013-2014 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 module openacc_kinds
29 implicit none
31 integer, parameter :: acc_device_kind = 4
33 end module openacc_kinds
35 module openacc
36 use openacc_kinds
37 implicit none
39 integer, parameter :: openacc_version = 201306
41 integer (acc_device_kind), parameter :: acc_device_none = 0
42 integer (acc_device_kind), parameter :: acc_device_default = 1
43 integer (acc_device_kind), parameter :: acc_device_host = 2
44 integer (acc_device_kind), parameter :: acc_device_not_host = 3
46 interface
47 function acc_on_device (dev)
48 use openacc_kinds
49 logical (4) :: acc_on_device
50 integer (acc_device_kind), intent (in) :: dev
51 end function acc_on_device
52 end interface
54 end module openacc