xref: /dflybsd-src/contrib/gcc-4.7/libgomp/omp_lib.h.in (revision 94b98a915ba84699b2a2adab9146fbc2cf617459)
1*629ff9f7SJohn Marino!  Copyright (C) 2005, 2007, 2008, 2009, 2011 Free Software Foundation, Inc.
2*629ff9f7SJohn Marino!  Contributed by Jakub Jelinek <jakub@redhat.com>.
3*629ff9f7SJohn Marino
4*629ff9f7SJohn Marino!  This file is part of the GNU OpenMP Library (libgomp).
5*629ff9f7SJohn Marino
6*629ff9f7SJohn Marino!  Libgomp is free software; you can redistribute it and/or modify it
7*629ff9f7SJohn Marino!  under the terms of the GNU General Public License as published by
8*629ff9f7SJohn Marino!  the Free Software Foundation; either version 3, or (at your option)
9*629ff9f7SJohn Marino!  any later version.
10*629ff9f7SJohn Marino
11*629ff9f7SJohn Marino!  Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
12*629ff9f7SJohn Marino!  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13*629ff9f7SJohn Marino!  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14*629ff9f7SJohn Marino!  more details.
15*629ff9f7SJohn Marino
16*629ff9f7SJohn Marino!  Under Section 7 of GPL version 3, you are granted additional
17*629ff9f7SJohn Marino!  permissions described in the GCC Runtime Library Exception, version
18*629ff9f7SJohn Marino!  3.1, as published by the Free Software Foundation.
19*629ff9f7SJohn Marino
20*629ff9f7SJohn Marino!  You should have received a copy of the GNU General Public License and
21*629ff9f7SJohn Marino!  a copy of the GCC Runtime Library Exception along with this program;
22*629ff9f7SJohn Marino!  see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23*629ff9f7SJohn Marino!  <http://www.gnu.org/licenses/>.
24*629ff9f7SJohn Marino
25*629ff9f7SJohn Marino      integer omp_lock_kind, omp_nest_lock_kind, openmp_version
26*629ff9f7SJohn Marino      parameter (omp_lock_kind = @OMP_LOCK_KIND@)
27*629ff9f7SJohn Marino      parameter (omp_nest_lock_kind = @OMP_NEST_LOCK_KIND@)
28*629ff9f7SJohn Marino      integer omp_sched_kind
29*629ff9f7SJohn Marino      parameter (omp_sched_kind = 4)
30*629ff9f7SJohn Marino      integer (omp_sched_kind) omp_sched_static, omp_sched_dynamic
31*629ff9f7SJohn Marino      integer (omp_sched_kind) omp_sched_guided, omp_sched_auto
32*629ff9f7SJohn Marino      parameter (omp_sched_static = 1)
33*629ff9f7SJohn Marino      parameter (omp_sched_dynamic = 2)
34*629ff9f7SJohn Marino      parameter (omp_sched_guided = 3)
35*629ff9f7SJohn Marino      parameter (omp_sched_auto = 4)
36*629ff9f7SJohn Marino      parameter (openmp_version = 201107)
37*629ff9f7SJohn Marino
38*629ff9f7SJohn Marino      external omp_init_lock, omp_init_nest_lock
39*629ff9f7SJohn Marino      external omp_destroy_lock, omp_destroy_nest_lock
40*629ff9f7SJohn Marino      external omp_set_lock, omp_set_nest_lock
41*629ff9f7SJohn Marino      external omp_unset_lock, omp_unset_nest_lock
42*629ff9f7SJohn Marino      external omp_set_dynamic, omp_set_nested
43*629ff9f7SJohn Marino      external omp_set_num_threads
44*629ff9f7SJohn Marino
45*629ff9f7SJohn Marino      external omp_get_dynamic, omp_get_nested
46*629ff9f7SJohn Marino      logical(4) omp_get_dynamic, omp_get_nested
47*629ff9f7SJohn Marino      external omp_test_lock, omp_in_parallel
48*629ff9f7SJohn Marino      logical(4) omp_test_lock, omp_in_parallel
49*629ff9f7SJohn Marino
50*629ff9f7SJohn Marino      external omp_get_max_threads, omp_get_num_procs
51*629ff9f7SJohn Marino      integer(4) omp_get_max_threads, omp_get_num_procs
52*629ff9f7SJohn Marino      external omp_get_num_threads, omp_get_thread_num
53*629ff9f7SJohn Marino      integer(4) omp_get_num_threads, omp_get_thread_num
54*629ff9f7SJohn Marino      external omp_test_nest_lock
55*629ff9f7SJohn Marino      integer(4) omp_test_nest_lock
56*629ff9f7SJohn Marino
57*629ff9f7SJohn Marino      external omp_get_wtick, omp_get_wtime
58*629ff9f7SJohn Marino      double precision omp_get_wtick, omp_get_wtime
59*629ff9f7SJohn Marino
60*629ff9f7SJohn Marino      external omp_set_schedule, omp_get_schedule
61*629ff9f7SJohn Marino      external omp_get_thread_limit, omp_set_max_active_levels
62*629ff9f7SJohn Marino      external omp_get_max_active_levels, omp_get_level
63*629ff9f7SJohn Marino      external omp_get_ancestor_thread_num, omp_get_team_size
64*629ff9f7SJohn Marino      external omp_get_active_level
65*629ff9f7SJohn Marino      integer(4) omp_get_thread_limit, omp_get_max_active_levels
66*629ff9f7SJohn Marino      integer(4) omp_get_level, omp_get_ancestor_thread_num
67*629ff9f7SJohn Marino      integer(4) omp_get_team_size, omp_get_active_level
68*629ff9f7SJohn Marino
69*629ff9f7SJohn Marino      external omp_in_final
70*629ff9f7SJohn Marino      logical(4) omp_in_final
71