File: omp_stub.f90

package info (click to toggle)
elkcode 5.4.24-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 12,840 kB
  • sloc: f90: 48,415; fortran: 22,457; perl: 965; makefile: 384; sh: 369; python: 105; ansic: 67
file content (102 lines) | stat: -rw-r--r-- 1,815 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102

! Copyright (C) 2015 J. K. Dewhurst, S. Sharma and E. K. U. Gross.
! This file is distributed under the terms of the GNU General Public License.
! See the file COPYING for license details.

! Stub routines for OpenMP.

integer function omp_get_num_procs()
implicit none
omp_get_num_procs=1
return
end function

integer function omp_get_max_threads()
implicit none
omp_get_max_threads=1
return
end function

integer function omp_get_num_threads()
implicit none
omp_get_num_threads=1
return
end function

integer function omp_get_thread_num()
implicit none
omp_get_thread_num=0
return
end function

logical function omp_get_nested()
implicit none
omp_get_nested=.false.
return
end function

integer function omp_get_max_active_levels()
implicit none
omp_get_max_active_levels=1
return
end function

logical function omp_get_dynamic()
implicit none
omp_get_dynamic=.false.
return
end function

integer function omp_get_level()
implicit none
omp_get_level=0
return
end function

subroutine omp_set_num_threads(num_threads)
implicit none
integer, intent(in) :: num_threads
return
end subroutine

subroutine omp_set_nested(nested)
implicit none
logical, intent(in) :: nested
return
end subroutine

subroutine omp_set_max_active_levels(max_levels)
implicit none
integer, intent(in) :: max_levels
return
end subroutine

subroutine omp_set_dynamic(dynamic)
implicit none
logical, intent(in) :: dynamic
return
end subroutine

subroutine omp_init_lock(lock)
implicit none
integer(8), intent(in) :: lock
return
end subroutine

subroutine omp_destroy_lock(lock)
implicit none
integer(8), intent(in) :: lock
return
end subroutine

subroutine omp_set_lock(lock)
implicit none
integer(8), intent(in) :: lock
return
end subroutine

subroutine omp_unset_lock(lock)
implicit none
integer(8), intent(in) :: lock
return
end subroutine