Rename GetLanguageInfo to GetLanguageSpecificData (#117012)
[llvm-project.git] / clang / docs / OpenMPSupport.rst
blob3f996ceaff156cf3236b6c25a840f8cbbb832120
1 .. raw:: html
3   <style type="text/css">
4     .none { background-color: #FFCCCC }
5     .part { background-color: #FFFF99 }
6     .good { background-color: #CCFF99 }
7   </style>
9 .. role:: none
10 .. role:: part
11 .. role:: good
13 .. contents::
14    :local:
16 ==============
17 OpenMP Support
18 ==============
20 Clang fully supports OpenMP 4.5, almost all of 5.0 and most of 5.1/2.
21 Clang supports offloading to X86_64, AArch64, PPC64[LE], NVIDIA GPUs (all models) and AMD GPUs (all models).
23 In addition, the LLVM OpenMP runtime `libomp` supports the OpenMP Tools
24 Interface (OMPT) on x86, x86_64, AArch64, and PPC64 on Linux, Windows, and macOS.
25 OMPT is also supported for NVIDIA and AMD GPUs.
27 For the list of supported features from OpenMP 5.0 and 5.1
28 see `OpenMP implementation details`_ and `OpenMP 51 implementation details`_.
30 General improvements
31 ====================
32 - New collapse clause scheme to avoid expensive remainder operations.
33   Compute loop index variables after collapsing a loop nest via the
34   collapse clause by replacing the expensive remainder operation with
35   multiplications and additions.
37 - When using the collapse clause on a loop nest the default behavior
38   is to automatically extend the representation of the loop counter to
39   64 bits for the cases where the sizes of the collapsed loops are not
40   known at compile time. To prevent this conservative choice and use
41   at most 32 bits, compile your program with the
42   `-fopenmp-optimistic-collapse`.
45 GPU devices support
46 ===================
48 Data-sharing modes
49 ------------------
51 Clang supports two data-sharing models for Cuda devices: `Generic` and `Cuda`
52 modes. The default mode is `Generic`. `Cuda` mode can give an additional
53 performance and can be activated using the `-fopenmp-cuda-mode` flag. In
54 `Generic` mode all local variables that can be shared in the parallel regions
55 are stored in the global memory. In `Cuda` mode local variables are not shared
56 between the threads and it is user responsibility to share the required data
57 between the threads in the parallel regions. Often, the optimizer is able to
58 reduce the cost of `Generic` mode to the level of `Cuda` mode, but the flag,
59 as well as other assumption flags, can be used for tuning.
61 Features not supported or with limited support for Cuda devices
62 ---------------------------------------------------------------
64 - Cancellation constructs are not supported.
66 - Doacross loop nest is not supported.
68 - User-defined reductions are supported only for trivial types.
70 - Nested parallelism: inner parallel regions are executed sequentially.
72 - Debug information for OpenMP target regions is supported, but sometimes it may
73   be required to manually specify the address class of the inspected variables.
74   In some cases the local variables are actually allocated in the global memory,
75   but the debug info may be not aware of it.
78 .. _OpenMP implementation details:
80 OpenMP 5.0 Implementation Details
81 =================================
83 The following table provides a quick overview over various OpenMP 5.0 features
84 and their implementation status. Please post on the
85 `Discourse forums (Runtimes - OpenMP category)`_ for more
86 information or if you want to help with the
87 implementation.
89 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
90 |Category                      | Feature                                                      | Status                   | Reviews                                                               |
91 +==============================+==============================================================+==========================+=======================================================================+
92 | loop                         | support != in the canonical loop form                        | :good:`done`             | D54441                                                                |
93 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
94 | loop                         | #pragma omp loop (directive)                                 | :part:`partial`          | D145823 (combined forms)                                              |
95 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
96 | loop                         | #pragma omp loop bind                                        | :part:`worked on`        | D144634 (needs review)                                                |
97 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
98 | loop                         | collapse imperfectly nested loop                             | :good:`done`             |                                                                       |
99 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
100 | loop                         | collapse non-rectangular nested loop                         | :good:`done`             |                                                                       |
101 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
102 | loop                         | C++ range-base for loop                                      | :good:`done`             |                                                                       |
103 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
104 | loop                         | clause: if for SIMD directives                               | :good:`done`             |                                                                       |
105 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
106 | loop                         | inclusive scan (matching C++17 PSTL)                         | :good:`done`             |                                                                       |
107 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
108 | memory management            | memory allocators                                            | :good:`done`             | r341687,r357929                                                       |
109 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
110 | memory management            | allocate directive and allocate clause                       | :good:`done`             | r355614,r335952                                                       |
111 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
112 | OMPD                         | OMPD interfaces                                              | :good:`done`             | https://reviews.llvm.org/D99914   (Supports only HOST(CPU) and Linux  |
113 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
114 | OMPT                         | OMPT interfaces (callback support)                           | :good:`done`             |                                                                       |
115 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
116 | thread affinity              | thread affinity                                              | :good:`done`             |                                                                       |
117 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
118 | task                         | taskloop reduction                                           | :good:`done`             |                                                                       |
119 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
120 | task                         | task affinity                                                | :part:`not upstream`     | https://github.com/jklinkenberg/openmp/tree/task-affinity             |
121 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
122 | task                         | clause: depend on the taskwait construct                     | :good:`done`             | D113540 (regular codegen only)                                        |
123 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
124 | task                         | depend objects and detachable tasks                          | :good:`done`             |                                                                       |
125 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
126 | task                         | mutexinoutset dependence-type for tasks                      | :good:`done`             | D53380,D57576                                                         |
127 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
128 | task                         | combined taskloop constructs                                 | :good:`done`             |                                                                       |
129 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
130 | task                         | master taskloop                                              | :good:`done`             |                                                                       |
131 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
132 | task                         | parallel master taskloop                                     | :good:`done`             |                                                                       |
133 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
134 | task                         | master taskloop simd                                         | :good:`done`             |                                                                       |
135 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
136 | task                         | parallel master taskloop simd                                | :good:`done`             |                                                                       |
137 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
138 | SIMD                         | atomic and simd constructs inside SIMD code                  | :good:`done`             |                                                                       |
139 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
140 | SIMD                         | SIMD nontemporal                                             | :good:`done`             |                                                                       |
141 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
142 | device                       | infer target functions from initializers                     | :part:`worked on`        |                                                                       |
143 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
144 | device                       | infer target variables from initializers                     | :good:`done`             | D146418                                                               |
145 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
146 | device                       | OMP_TARGET_OFFLOAD environment variable                      | :good:`done`             | D50522                                                                |
147 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
148 | device                       | support full 'defaultmap' functionality                      | :good:`done`             | D69204                                                                |
149 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
150 | device                       | device specific functions                                    | :good:`done`             |                                                                       |
151 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
152 | device                       | clause: device_type                                          | :good:`done`             |                                                                       |
153 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
154 | device                       | clause: extended device                                      | :good:`done`             |                                                                       |
155 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
156 | device                       | clause: uses_allocators clause                               | :good:`done`             |                                                                       |
157 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
158 | device                       | clause: in_reduction                                         | :part:`worked on`        | r308768                                                               |
159 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
160 | device                       | omp_get_device_num()                                         | :good:`done`             | D54342,D128347                                                        |
161 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
162 | device                       | structure mapping of references                              | :none:`unclaimed`        |                                                                       |
163 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
164 | device                       | nested target declare                                        | :good:`done`             | D51378                                                                |
165 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
166 | device                       | implicitly map 'this' (this[:1])                             | :good:`done`             | D55982                                                                |
167 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
168 | device                       | allow access to the reference count (omp_target_is_present)  | :good:`done`             |                                                                       |
169 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
170 | device                       | requires directive                                           | :good:`done`             |                                                                       |
171 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
172 | device                       | clause: unified_shared_memory                                | :good:`done`             | D52625,D52359                                                         |
173 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
174 | device                       | clause: unified_address                                      | :part:`partial`          |                                                                       |
175 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
176 | device                       | clause: reverse_offload                                      | :part:`partial`          | D52780,D155003                                                        |
177 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
178 | device                       | clause: atomic_default_mem_order                             | :good:`done`             | D53513                                                                |
179 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
180 | device                       | clause: dynamic_allocators                                   | :part:`unclaimed parts`  | D53079                                                                |
181 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
182 | device                       | user-defined mappers                                         | :good:`done`             | D56326,D58638,D58523,D58074,D60972,D59474                             |
183 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
184 | device                       | map array-section with implicit mapper                       | :good:`done`             |  https://github.com/llvm/llvm-project/pull/101101                     |
185 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
186 | device                       | mapping lambda expression                                    | :good:`done`             | D51107                                                                |
187 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
188 | device                       | clause: use_device_addr for target data                      | :good:`done`             |                                                                       |
189 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
190 | device                       | support close modifier on map clause                         | :good:`done`             | D55719,D55892                                                         |
191 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
192 | device                       | teams construct on the host device                           | :good:`done`             | r371553                                                               |
193 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
194 | device                       | support non-contiguous array sections for target update      | :good:`done`             |                                                                       |
195 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
196 | device                       | pointer attachment                                           | :good:`done`             |                                                                       |
197 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
198 | atomic                       | hints for the atomic construct                               | :good:`done`             | D51233                                                                |
199 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
200 | base language                | C11 support                                                  | :good:`done`             |                                                                       |
201 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
202 | base language                | C++11/14/17 support                                          | :good:`done`             |                                                                       |
203 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
204 | base language                | lambda support                                               | :good:`done`             |                                                                       |
205 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
206 | misc                         | array shaping                                                | :good:`done`             | D74144                                                                |
207 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
208 | misc                         | library shutdown (omp_pause_resource[_all])                  | :good:`done`             | D55078                                                                |
209 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
210 | misc                         | metadirectives                                               | :part:`mostly done`      | D91944                                                                |
211 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
212 | misc                         | conditional modifier for lastprivate clause                  | :good:`done`             |                                                                       |
213 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
214 | misc                         | iterator and multidependences                                | :good:`done`             |                                                                       |
215 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
216 | misc                         | depobj directive and depobj dependency kind                  | :good:`done`             |                                                                       |
217 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
218 | misc                         | user-defined function variants                               | :good:`done`.            | D67294, D64095, D71847, D71830, D109635                               |
219 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
220 | misc                         | pointer/reference to pointer based array reductions          | :good:`done`             |                                                                       |
221 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
222 | misc                         | prevent new type definitions in clauses                      | :good:`done`             |                                                                       |
223 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
224 | memory model                 | memory model update (seq_cst, acq_rel, release, acquire,...) | :good:`done`             |                                                                       |
225 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
228 .. _OpenMP 51 implementation details:
230 OpenMP 5.1 Implementation Details
231 =================================
233 The following table provides a quick overview over various OpenMP 5.1 features
234 and their implementation status.
235 Please post on the
236 `Discourse forums (Runtimes - OpenMP category)`_ for more
237 information or if you want to help with the
238 implementation.
240 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
241 |Category                      | Feature                                                      | Status                   | Reviews                                                               |
242 +==============================+==============================================================+==========================+=======================================================================+
243 | atomic                       | 'compare' clause on atomic construct                         | :good:`done`             | D120290, D120007, D118632, D120200, D116261, D118547, D116637         |
244 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
245 | atomic                       | 'fail' clause on atomic construct                            | :part:`worked on`        | D123235 (in progress)                                                 |
246 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
247 | base language                | C++ attribute specifier syntax                               | :good:`done`             | D105648                                                               |
248 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
249 | device                       | 'present' map type modifier                                  | :good:`done`             | D83061, D83062, D84422                                                |
250 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
251 | device                       | 'present' motion modifier                                    | :good:`done`             | D84711, D84712                                                        |
252 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
253 | device                       | 'present' in defaultmap clause                               | :good:`done`             | D92427                                                                |
254 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
255 | device                       | map clause reordering based on 'present' modifier            | :none:`unclaimed`        |                                                                       |
256 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
257 | device                       | device-specific environment variables                        | :none:`unclaimed`        |                                                                       |
258 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
259 | device                       | omp_target_is_accessible routine                             | :none:`unclaimed`        |                                                                       |
260 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
261 | device                       | omp_get_mapped_ptr routine                                   | :good:`done`             | D141545                                                               |
262 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
263 | device                       | new async target memory copy routines                        | :good:`done`             | D136103                                                               |
264 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
265 | device                       | thread_limit clause on target construct                      | :part:`partial`          | D141540 (offload), D152054 (host, in progress)                        |
266 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
267 | device                       | has_device_addr clause on target construct                   | :none:`unclaimed`        |                                                                       |
268 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
269 | device                       | iterators in map clause or motion clauses                    | :none:`unclaimed`        |                                                                       |
270 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
271 | device                       | indirect clause on declare target directive                  | :none:`unclaimed`        |                                                                       |
272 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
273 | device                       | allow virtual functions calls for mapped object on device    | :part:`partial`          |                                                                       |
274 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
275 | device                       | interop construct                                            | :part:`partial`          | parsing/sema done: D98558, D98834, D98815                             |
276 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
277 | device                       | assorted routines for querying interoperable properties      | :part:`partial`          | D106674                                                               |
278 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
279 | loop                         | Loop tiling transformation                                   | :good:`done`             | D76342                                                                |
280 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
281 | loop                         | Loop unrolling transformation                                | :good:`done`             | D99459                                                                |
282 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
283 | loop                         | 'reproducible'/'unconstrained' modifiers in 'order' clause   | :part:`partial`          | D127855                                                               |
284 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
285 | memory management            | alignment for allocate directive and clause                  | :good:`done`             | D115683                                                               |
286 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
287 | memory management            | 'allocator' modifier for allocate clause                     | :good:`done`             | https://github.com/llvm/llvm-project/pull/114883                      |
288 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
289 | memory management            | new memory management routines                               | :none:`unclaimed`        |                                                                       |
290 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
291 | memory management            | changes to omp_alloctrait_key enum                           | :none:`unclaimed`        |                                                                       |
292 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
293 | memory model                 | seq_cst clause on flush construct                            | :none:`unclaimed`        |                                                                       |
294 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
295 | misc                         | 'omp_all_memory' keyword and use in 'depend' clause          | :good:`done`             | D125828, D126321                                                      |
296 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
297 | misc                         | error directive                                              | :good:`done`             | D139166                                                               |
298 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
299 | misc                         | scope construct                                              | :good:`done`             | D157933, https://github.com/llvm/llvm-project/pull/109197             |
300 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
301 | misc                         | routines for controlling and querying team regions           | :part:`partial`          | D95003 (libomp only)                                                  |
302 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
303 | misc                         | changes to ompt_scope_endpoint_t enum                        | :none:`unclaimed`        |                                                                       |
304 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
305 | misc                         | omp_display_env routine                                      | :good:`done`             | D74956                                                                |
306 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
307 | misc                         | extended OMP_PLACES syntax                                   | :none:`unclaimed`        |                                                                       |
308 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
309 | misc                         | OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env vars            | :good:`done`             | D138769                                                               |
310 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
311 | misc                         | 'target_device' selector in context specifier                | :none:`worked on`        |                                                                       |
312 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
313 | misc                         | begin/end declare variant                                    | :good:`done`             | D71179                                                                |
314 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
315 | misc                         | dispatch construct and function variant argument adjustment  | :part:`worked on`        | D99537, D99679                                                        |
316 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
317 | misc                         | assumes directives                                           | :part:`worked on`        |                                                                       |
318 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
319 | misc                         | assume directive                                             | :good:`done`             |                                                                       |
320 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
321 | misc                         | nothing directive                                            | :good:`done`             | D123286                                                               |
322 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
323 | misc                         | masked construct and related combined constructs             | :part:`worked on`        | D99995, D100514                                                       |
324 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
325 | misc                         | default(firstprivate) & default(private)                     | :good:`done`             | D75591 (firstprivate), D125912 (private)                              |
326 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
327 | other                        | deprecating master construct                                 | :none:`unclaimed`        |                                                                       |
328 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
329 | OMPT                         | new barrier types added to ompt_sync_region_t enum           | :none:`unclaimed`        |                                                                       |
330 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
331 | OMPT                         | async data transfers added to ompt_target_data_op_t enum     | :none:`unclaimed`        |                                                                       |
332 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
333 | OMPT                         | new barrier state values added to ompt_state_t enum          | :none:`unclaimed`        |                                                                       |
334 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
335 | OMPT                         | new 'emi' callbacks for external monitoring interfaces       | :good:`done`             |                                                                       |
336 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
337 | OMPT                         | device tracing interface                                     | :none:`unclaimed`        |                                                                       |
338 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
339 | task                         | 'strict' modifier for taskloop construct                     | :none:`unclaimed`        |                                                                       |
340 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
341 | task                         | inoutset in depend clause                                    | :good:`done`             | D97085, D118383                                                       |
342 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
343 | task                         | nowait clause on taskwait                                    | :part:`partial`          | parsing/sema done: D131830, D141531                                   |
344 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
346 OpenMP Extensions
347 =================
349 The following table provides a quick overview over various OpenMP
350 extensions and their implementation status.  These extensions are not
351 currently defined by any standard, so links to associated LLVM
352 documentation are provided.  As these extensions mature, they will be
353 considered for standardization. Please post on the
354 `Discourse forums (Runtimes - OpenMP category)`_ to provide feedback.
356 +------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+
357 |Category                      | Feature                                                                           | Status                   | Reviews                                                |
358 +==============================+===================================================================================+==========================+========================================================+
359 | atomic extension             | `'atomic' strictly nested within 'teams'                                          | :good:`prototyped`       | D126323                                                |
360 |                              | <https://openmp.llvm.org/docs/openacc/OpenMPExtensions.html#atomicWithinTeams>`_  |                          |                                                        |
361 +------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+
362 | device extension             | `'ompx_hold' map type modifier                                                    | :good:`prototyped`       | D106509, D106510                                       |
363 |                              | <https://openmp.llvm.org/docs/openacc/OpenMPExtensions.html#ompx-hold>`_          |                          |                                                        |
364 +------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+
365 | device extension             | `'ompx_bare' clause on 'target teams' construct                                   | :good:`prototyped`       | #66844, #70612                                         |
366 |                              | <https://www.osti.gov/servlets/purl/2205717>`_                                    |                          |                                                        |
367 +------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+
368 | device extension             | Multi-dim 'num_teams' and 'thread_limit' clause on 'target teams ompx_bare'       | :good:`partial`          | #99732, #101407, #102715                               |
369 |                              | construct                                                                         |                          |                                                        |
370 +------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+
372 .. _Discourse forums (Runtimes - OpenMP category): https://discourse.llvm.org/c/runtimes/openmp/35