File: openmp.cfg

package info (click to toggle)
cppcheck 2.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,128 kB
  • sloc: cpp: 227,006; python: 12,193; ansic: 7,078; xml: 958; sh: 865; makefile: 709; cs: 291
file content (157 lines) | stat: -rw-r--r-- 4,853 bytes parent folder | download | duplicates (5)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0"?>
<def format="2">
  <!-- OpenMP Library Configuration -->
  <!-- Specifications can be found here: https://www.openmp.org/specifications/ -->
  <!-- OpenMP library is typically included by "#include <omp.h>" -->
  <!-- ########## OpenMP Types ########## -->
  <podtype name="ompt_id_t" sign="u" size="8"/>
  <podtype name="ompt_device_time_t" sign="u" size="8"/>
  <podtype name="ompt_buffer_cursor_t" sign="u" size="8"/>
  <podtype name="ompt_hwid_t" sign="u" size="8"/>
  <podtype name="ompt_wait_id_t" sign="u" size="8"/>
  <podtype name="ompd_size_t" sign="u" size="8"/>
  <podtype name="ompd_wait_id_t" sign="u" size="8"/>
  <podtype name="ompd_addr_t" sign="u" size="8"/>
  <podtype name="ompd_word_t" sign="s" size="8"/>
  <podtype name="ompd_seg_t" sign="u" size="8"/>
  <podtype name="ompd_thread_id_t" sign="u" size="8"/>
  <podtype name="ompd_icv_id_t" sign="u" size="8"/>
  <!-- ########## OpenMP Macros / Defines ########## -->
  <!-- ########## OpenMP Allocation / Deallocation ########## -->
  <memory>
    <alloc buffer-size="malloc">omp_target_alloc</alloc>
    <dealloc>omp_target_free</dealloc>
  </memory>
  <memory>
    <alloc buffer-size="malloc">omp_alloc</alloc>
    <dealloc>omp_free</dealloc>
  </memory>
  <!-- ########## OpenMP Functions ########## -->
  <!-- int omp_get_cancellation(void); -->
  <function name="omp_get_cancellation">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <leak-ignore/>
  </function>
  <!-- int omp_get_dynamic(void); -->
  <function name="omp_get_dynamic">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <leak-ignore/>
  </function>
  <!-- int omp_get_max_threads(void); -->
  <function name="omp_get_max_threads">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <leak-ignore/>
  </function>
  <!-- int omp_get_nested(void); -->
  <function name="omp_get_nested">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <leak-ignore/>
    <warn severity="style">This routine has been deprecated. See OpenMP specification.</warn>
  </function>
  <!-- int omp_get_num_procs(void); -->
  <function name="omp_get_num_procs">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <leak-ignore/>
  </function>
  <!-- int omp_get_num_threads(void); -->
  <function name="omp_get_num_threads">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <leak-ignore/>
  </function>
  <!-- int omp_get_thread_num(void); -->
  <function name="omp_get_thread_num">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <leak-ignore/>
  </function>
  <!-- double omp_get_wtick(void); -->
  <function name="omp_get_wtick">
    <noreturn>false</noreturn>
    <returnValue type="double"/>
    <use-retval/>
    <leak-ignore/>
  </function>
  <!-- double omp_get_wtime(void); -->
  <function name="omp_get_wtime">
    <noreturn>false</noreturn>
    <returnValue type="double"/>
    <use-retval/>
    <leak-ignore/>
  </function>
  <!-- int omp_in_parallel(void); -->
  <function name="omp_in_parallel">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <leak-ignore/>
  </function>
  <!-- void omp_set_dynamic(int dynamic_threads); -->
  <function name="omp_set_dynamic">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <leak-ignore/>
    <arg nr="1" direction="in">
      <not-uninit/>
    </arg>
  </function>
  <!-- void omp_set_nested(int nested); -->
  <function name="omp_set_nested">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <leak-ignore/>
    <warn severity="style">This routine has been deprecated. See OpenMP specification.</warn>
    <arg nr="1" direction="in">
      <not-uninit/>
    </arg>
  </function>
  <!-- void omp_set_num_threads(int num_threads); -->
  <function name="omp_set_num_threads">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <leak-ignore/>
    <arg nr="1" direction="in">
      <not-uninit/>
      <not-bool/>
      <valid>1:</valid>
    </arg>
  </function>
  <!-- void* omp_target_alloc(size_t size, int device_num); -->
  <function name="omp_target_alloc">
    <noreturn>false</noreturn>
    <returnValue type="void *"/>
    <arg nr="1" direction="in">
      <not-uninit/>
    </arg>
    <arg nr="2" direction="in">
      <not-uninit/>
      <not-bool/>
      <valid>0:</valid>
    </arg>
  </function>
  <!-- void omp_target_free(void *device_ptr, int device_num); -->
  <function name="omp_target_free">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <arg nr="1">
      <not-uninit/>
    </arg>
    <arg nr="2" direction="in">
      <not-uninit/>
      <not-bool/>
      <valid>0:</valid>
    </arg>
  </function>
</def>