| 1 |
.. raw:: html |
| 2 |
|
| 3 |
<style type="text/css"> |
| 4 |
.none { background-color: #FFCCCC } |
| 5 |
.part { background-color: #FFFF99 } |
| 6 |
.good { background-color: #CCFF99 } |
| 7 |
</style> |
| 8 |
|
| 9 |
.. role:: none |
| 10 |
.. role:: part |
| 11 |
.. role:: good |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
|
| 16 |
============== |
| 17 |
OpenMP Support |
| 18 |
============== |
| 19 |
|
| 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). |
| 22 |
|
| 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. |
| 26 |
|
| 27 |
For the list of supported features from OpenMP 5.0 and 5.1 |
| 28 |
see `OpenMP implementation details`_ and `OpenMP 51 implementation details`_. |
| 29 |
|
| 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. |
| 36 |
|
| 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`. |
| 43 |
|
| 44 |
|
| 45 |
GPU devices support |
| 46 |
=================== |
| 47 |
|
| 48 |
Data-sharing modes |
| 49 |
------------------ |
| 50 |
|
| 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. |
| 60 |
|
| 61 |
Features not supported or with limited support for Cuda devices |
| 62 |
--------------------------------------------------------------- |
| 63 |
|
| 64 |
- Cancellation constructs are not supported. |
| 65 |
|
| 66 |
- Doacross loop nest is not supported. |
| 67 |
|
| 68 |
- User-defined reductions are supported only for trivial types. |
| 69 |
|
| 70 |
- Nested parallelism: inner parallel regions are executed sequentially. |
| 71 |
|
| 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. |
| 76 |
|
| 77 |
|
| 78 |
.. _OpenMP implementation details: |
| 79 |
|
| 80 |
OpenMP 5.0 Implementation Details |
| 81 |
================================= |
| 82 |
|
| 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. |
| 88 |
|
| 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 | mapping lambda expression | :good:`done` | D51107 | |
| 185 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 186 |
| device | clause: use_device_addr for target data | :good:`done` | | |
| 187 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 188 |
| device | support close modifier on map clause | :good:`done` | D55719,D55892 | |
| 189 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 190 |
| device | teams construct on the host device | :good:`done` | r371553 | |
| 191 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 192 |
| device | support non-contiguous array sections for target update | :good:`done` | | |
| 193 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 194 |
| device | pointer attachment | :good:`done` | | |
| 195 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 196 |
| atomic | hints for the atomic construct | :good:`done` | D51233 | |
| 197 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 198 |
| base language | C11 support | :good:`done` | | |
| 199 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 200 |
| base language | C++11/14/17 support | :good:`done` | | |
| 201 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 202 |
| base language | lambda support | :good:`done` | | |
| 203 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 204 |
| misc | array shaping | :good:`done` | D74144 | |
| 205 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 206 |
| misc | library shutdown (omp_pause_resource[_all]) | :good:`done` | D55078 | |
| 207 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 208 |
| misc | metadirectives | :part:`mostly done` | D91944 | |
| 209 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 210 |
| misc | conditional modifier for lastprivate clause | :good:`done` | | |
| 211 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 212 |
| misc | iterator and multidependences | :good:`done` | | |
| 213 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 214 |
| misc | depobj directive and depobj dependency kind | :good:`done` | | |
| 215 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 216 |
| misc | user-defined function variants | :good:`done`. | D67294, D64095, D71847, D71830, D109635 | |
| 217 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 218 |
| misc | pointer/reference to pointer based array reductions | :good:`done` | | |
| 219 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 220 |
| misc | prevent new type definitions in clauses | :good:`done` | | |
| 221 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 222 |
| memory model | memory model update (seq_cst, acq_rel, release, acquire,...) | :good:`done` | | |
| 223 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 224 |
|
| 225 |
|
| 226 |
.. _OpenMP 51 implementation details: |
| 227 |
|
| 228 |
OpenMP 5.1 Implementation Details |
| 229 |
================================= |
| 230 |
|
| 231 |
The following table provides a quick overview over various OpenMP 5.1 features |
| 232 |
and their implementation status. |
| 233 |
Please post on the |
| 234 |
`Discourse forums (Runtimes - OpenMP category)`_ for more |
| 235 |
information or if you want to help with the |
| 236 |
implementation. |
| 237 |
|
| 238 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 239 |
|Category | Feature | Status | Reviews | |
| 240 |
+==============================+==============================================================+==========================+=======================================================================+ |
| 241 |
| atomic | 'compare' clause on atomic construct | :good:`done` | D120290, D120007, D118632, D120200, D116261, D118547, D116637 | |
| 242 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 243 |
| atomic | 'fail' clause on atomic construct | :part:`worked on` | D123235 (in progress) | |
| 244 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 245 |
| base language | C++ attribute specifier syntax | :good:`done` | D105648 | |
| 246 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 247 |
| device | 'present' map type modifier | :good:`done` | D83061, D83062, D84422 | |
| 248 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 249 |
| device | 'present' motion modifier | :good:`done` | D84711, D84712 | |
| 250 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 251 |
| device | 'present' in defaultmap clause | :good:`done` | D92427 | |
| 252 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 253 |
| device | map clause reordering based on 'present' modifier | :none:`unclaimed` | | |
| 254 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 255 |
| device | device-specific environment variables | :none:`unclaimed` | | |
| 256 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 257 |
| device | omp_target_is_accessible routine | :none:`unclaimed` | | |
| 258 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 259 |
| device | omp_get_mapped_ptr routine | :good:`done` | D141545 | |
| 260 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 261 |
| device | new async target memory copy routines | :good:`done` | D136103 | |
| 262 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 263 |
| device | thread_limit clause on target construct | :part:`partial` | D141540 (offload), D152054 (host, in progress) | |
| 264 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 265 |
| device | has_device_addr clause on target construct | :none:`unclaimed` | | |
| 266 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 267 |
| device | iterators in map clause or motion clauses | :none:`unclaimed` | | |
| 268 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 269 |
| device | indirect clause on declare target directive | :none:`unclaimed` | | |
| 270 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 271 |
| device | allow virtual functions calls for mapped object on device | :part:`partial` | | |
| 272 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 273 |
| device | interop construct | :part:`partial` | parsing/sema done: D98558, D98834, D98815 | |
| 274 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 275 |
| device | assorted routines for querying interoperable properties | :part:`partial` | D106674 | |
| 276 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 277 |
| loop | Loop tiling transformation | :good:`done` | D76342 | |
| 278 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 279 |
| loop | Loop unrolling transformation | :good:`done` | D99459 | |
| 280 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 281 |
| loop | 'reproducible'/'unconstrained' modifiers in 'order' clause | :part:`partial` | D127855 | |
| 282 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 283 |
| memory management | alignment for allocate directive and clause | :good:`done` | D115683 | |
| 284 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 285 |
| memory management | new memory management routines | :none:`unclaimed` | | |
| 286 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 287 |
| memory management | changes to omp_alloctrait_key enum | :none:`unclaimed` | | |
| 288 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 289 |
| memory model | seq_cst clause on flush construct | :none:`unclaimed` | | |
| 290 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 291 |
| misc | 'omp_all_memory' keyword and use in 'depend' clause | :good:`done` | D125828, D126321 | |
| 292 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 293 |
| misc | error directive | :good:`done` | D139166 | |
| 294 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 295 |
| misc | scope construct | :none:`worked on` | D157933 | |
| 296 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 297 |
| misc | routines for controlling and querying team regions | :part:`partial` | D95003 (libomp only) | |
| 298 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 299 |
| misc | changes to ompt_scope_endpoint_t enum | :none:`unclaimed` | | |
| 300 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 301 |
| misc | omp_display_env routine | :good:`done` | D74956 | |
| 302 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 303 |
| misc | extended OMP_PLACES syntax | :none:`unclaimed` | | |
| 304 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 305 |
| misc | OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env vars | :good:`done` | D138769 | |
| 306 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 307 |
| misc | 'target_device' selector in context specifier | :none:`unclaimed` | | |
| 308 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 309 |
| misc | begin/end declare variant | :good:`done` | D71179 | |
| 310 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 311 |
| misc | dispatch construct and function variant argument adjustment | :part:`worked on` | D99537, D99679 | |
| 312 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 313 |
| misc | assumes directives | :part:`worked on` | | |
| 314 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 315 |
| misc | assume directive | :part:`worked on` | | |
| 316 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 317 |
| misc | nothing directive | :good:`done` | D123286 | |
| 318 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 319 |
| misc | masked construct and related combined constructs | :part:`worked on` | D99995, D100514 | |
| 320 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 321 |
| misc | default(firstprivate) & default(private) | :good:`done` | D75591 (firstprivate), D125912 (private) | |
| 322 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 323 |
| other | deprecating master construct | :none:`unclaimed` | | |
| 324 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 325 |
| OMPT | new barrier types added to ompt_sync_region_t enum | :none:`unclaimed` | | |
| 326 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 327 |
| OMPT | async data transfers added to ompt_target_data_op_t enum | :none:`unclaimed` | | |
| 328 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 329 |
| OMPT | new barrier state values added to ompt_state_t enum | :none:`unclaimed` | | |
| 330 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 331 |
| OMPT | new 'emi' callbacks for external monitoring interfaces | :good:`done` | | |
| 332 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 333 |
| OMPT | device tracing interface | :none:`unclaimed` | | |
| 334 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 335 |
| task | 'strict' modifier for taskloop construct | :none:`unclaimed` | | |
| 336 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 337 |
| task | inoutset in depend clause | :good:`done` | D97085, D118383 | |
| 338 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 339 |
| task | nowait clause on taskwait | :part:`partial` | parsing/sema done: D131830, D141531 | |
| 340 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 341 |
|
| 342 |
OpenMP Extensions |
| 343 |
================= |
| 344 |
|
| 345 |
The following table provides a quick overview over various OpenMP |
| 346 |
extensions and their implementation status. These extensions are not |
| 347 |
currently defined by any standard, so links to associated LLVM |
| 348 |
documentation are provided. As these extensions mature, they will be |
| 349 |
considered for standardization. Please post on the |
| 350 |
`Discourse forums (Runtimes - OpenMP category)`_ to provide feedback. |
| 351 |
|
| 352 |
+------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+ |
| 353 |
|Category | Feature | Status | Reviews | |
| 354 |
+==============================+===================================================================================+==========================+========================================================+ |
| 355 |
| atomic extension | `'atomic' strictly nested within 'teams' | :good:`prototyped` | D126323 | |
| 356 |
| | <https://openmp.llvm.org/docs/openacc/OpenMPExtensions.html#atomicWithinTeams>`_ | | | |
| 357 |
+------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+ |
| 358 |
| device extension | `'ompx_hold' map type modifier | :good:`prototyped` | D106509, D106510 | |
| 359 |
| | <https://openmp.llvm.org/docs/openacc/OpenMPExtensions.html#ompx-hold>`_ | | | |
| 360 |
+------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+ |
| 361 |
|
| 362 |
.. _Discourse forums (Runtimes - OpenMP category): https://discourse.llvm.org/c/runtimes/openmp/35 |