| 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` | https://github.com/llvm/llvm-project/pull/157025 | |
| 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` | https://github.com/llvm/llvm-project/pull/144635 | |
| 195 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 196 |
| device | pointer attachment | :part:`being repaired` | @abhinavgaba (https://github.com/llvm/llvm-project/pull/153683) | |
| 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, https://github.com/llvm/llvm-project/pull/128640 | |
| 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 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 226 |
|
| 227 |
|
| 228 |
.. _OpenMP 51 implementation details: |
| 229 |
|
| 230 |
OpenMP 5.1 Implementation Details |
| 231 |
================================= |
| 232 |
|
| 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. |
| 239 |
|
| 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 | :good:`done` | https://github.com/llvm/llvm-project/pull/138294 | |
| 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 | use_device_ptr/addr preserve host address when lookup fails | :good:`done` | https://github.com/llvm/llvm-project/pull/174659 | |
| 270 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 271 |
| device | iterators in map clause or motion clauses | :none:`done` | https://github.com/llvm/llvm-project/pull/159112 | |
| 272 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 273 |
| device | indirect clause on declare target directive | :part:`In Progress` | | |
| 274 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 275 |
| device | allow virtual functions calls for mapped object on device | :part:`partial` | | |
| 276 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 277 |
| device | interop construct | :part:`partial` | parsing/sema done: D98558, D98834, D98815 | |
| 278 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 279 |
| device | assorted routines for querying interoperable properties | :part:`partial` | D106674 | |
| 280 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 281 |
| loop | Loop tiling transformation | :good:`done` | D76342 | |
| 282 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 283 |
| loop | Loop unrolling transformation | :good:`done` | D99459 | |
| 284 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 285 |
| loop | 'reproducible'/'unconstrained' modifiers in 'order' clause | :part:`partial` | D127855 | |
| 286 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 287 |
| memory management | alignment for allocate directive and clause | :good:`done` | D115683 | |
| 288 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 289 |
| memory management | 'allocator' modifier for allocate clause | :good:`done` | https://github.com/llvm/llvm-project/pull/114883 | |
| 290 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 291 |
| memory management | 'align' modifier for allocate clause | :good:`done` | https://github.com/llvm/llvm-project/pull/121814 | |
| 292 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 293 |
| memory management | new memory management routines | :none:`unclaimed` | | |
| 294 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 295 |
| memory management | changes to omp_alloctrait_key enum | :none:`unclaimed` | | |
| 296 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 297 |
| memory model | seq_cst clause on flush construct | :good:`done` | https://github.com/llvm/llvm-project/pull/114072 | |
| 298 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 299 |
| misc | 'omp_all_memory' keyword and use in 'depend' clause | :good:`done` | D125828, D126321 | |
| 300 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 301 |
| misc | error directive | :good:`done` | D139166 | |
| 302 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 303 |
| misc | scope construct | :good:`done` | D157933, https://github.com/llvm/llvm-project/pull/109197 | |
| 304 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 305 |
| misc | routines for controlling and querying team regions | :part:`partial` | D95003 (libomp only) | |
| 306 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 307 |
| misc | changes to ompt_scope_endpoint_t enum | :none:`unclaimed` | | |
| 308 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 309 |
| misc | omp_display_env routine | :good:`done` | D74956 | |
| 310 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 311 |
| misc | extended OMP_PLACES syntax | :none:`unclaimed` | | |
| 312 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 313 |
| misc | OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env vars | :good:`done` | D138769 | |
| 314 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 315 |
| misc | 'target_device' selector in context specifier | :none:`worked on` | | |
| 316 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 317 |
| misc | begin/end declare variant | :good:`done` | D71179 | |
| 318 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 319 |
| misc | dispatch construct and function variant argument adjustment | :part:`worked on` | D99537, D99679 | |
| 320 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 321 |
| misc | assumes directives | :part:`worked on` | | |
| 322 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 323 |
| misc | assume directive | :good:`done` | | |
| 324 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 325 |
| misc | nothing directive | :good:`done` | D123286 | |
| 326 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 327 |
| misc | masked construct and related combined constructs | :good:`done` | D99995, D100514, PR-121741(parallel_masked_taskloop) | |
| 328 |
| | | | PR-121746(parallel_masked_task_loop_simd),PR-121914(masked_taskloop) | |
| 329 |
| | | | PR-121916(masked_taskloop_simd) | |
| 330 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 331 |
| misc | default(firstprivate) & default(private) | :good:`done` | D75591 (firstprivate), D125912 (private) | |
| 332 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 333 |
| other | deprecating master construct | :none:`unclaimed` | | |
| 334 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 335 |
| OMPT | new barrier types added to ompt_sync_region_t enum | :none:`unclaimed` | | |
| 336 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 337 |
| OMPT | async data transfers added to ompt_target_data_op_t enum | :none:`unclaimed` | | |
| 338 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 339 |
| OMPT | new barrier state values added to ompt_state_t enum | :none:`unclaimed` | | |
| 340 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 341 |
| OMPT | new 'emi' callbacks for external monitoring interfaces | :good:`done` | | |
| 342 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 343 |
| OMPT | device tracing interface | :none:`in progress` | jplehr | |
| 344 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 345 |
| task | 'strict' modifier for taskloop construct | :none:`unclaimed` | | |
| 346 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 347 |
| task | inoutset in depend clause | :good:`done` | D97085, D118383 | |
| 348 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 349 |
| task | nowait clause on taskwait | :part:`partial` | parsing/sema done: D131830, D141531 | |
| 350 |
+------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ |
| 351 |
|
| 352 |
|
| 353 |
.. _OpenMP 5.2 implementation details: |
| 354 |
|
| 355 |
OpenMP 5.2 Implementation Details |
| 356 |
================================= |
| 357 |
|
| 358 |
The following table provides a quick overview of various OpenMP 5.2 features |
| 359 |
and their implementation status. Please post on the |
| 360 |
`Discourse forums (Runtimes - OpenMP category)`_ for more |
| 361 |
information or if you want to help with the |
| 362 |
implementation. |
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 367 |
|Feature | C/C++ Status | Fortran Status | Reviews | |
| 368 |
+=============================================================+===========================+===========================+==========================================================================+ |
| 369 |
| omp_in_explicit_task() | :none:`unclaimed` | :none:`unclaimed` | | |
| 370 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 371 |
| semantics of explicit_task_var and implicit_task_var | :none:`unclaimed` | :none:`unclaimed` | | |
| 372 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 373 |
| ompx sentinel for C/C++ directive extensions | :none:`unclaimed` | :none:`unclaimed` | | |
| 374 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 375 |
| ompx prefix for clause extensions | :none:`unclaimed` | :none:`unclaimed` | | |
| 376 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 377 |
| if clause on teams construct | :none:`unclaimed` | :none:`unclaimed` | | |
| 378 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 379 |
| step modifier added | :none:`unclaimed` | :none:`unclaimed` | | |
| 380 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 381 |
| declare mapper: Add iterator modifier on map clause | :none:`unclaimed` | :none:`unclaimed` | | |
| 382 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 383 |
| declare mapper: Add iterator modifier on map clause | :none:`unclaimed` | :none:`unclaimed` | | |
| 384 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 385 |
| memspace and traits modifiers to uses allocator i | :none:`unclaimed` | :none:`unclaimed` | | |
| 386 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 387 |
| Add otherwise clause to metadirectives | :none:`unclaimed` | :none:`unclaimed` | | |
| 388 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 389 |
| doacross clause with support for omp_cur_iteration | :none:`unclaimed` | :none:`unclaimed` | | |
| 390 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 391 |
| position of interop_type in init clause on iterop | :none:`unclaimed` | :none:`unclaimed` | | |
| 392 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 393 |
| implicit map type for target enter/exit data | :none:`unclaimed` | :none:`unclaimed` | | |
| 394 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 395 |
| work OMPT type for work-sharing loop constructs | :none:`unclaimed` | :none:`unclaimed` | | |
| 396 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 397 |
| allocate and firstprivate on scope directive | :none:`unclaimed` | :none:`unclaimed` | | |
| 398 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 399 |
| Change loop consistency for order clause | :none:`unclaimed` | :none:`unclaimed` | | |
| 400 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 401 |
| Add memspace and traits modifiers to uses_allocators | :none:`unclaimed` | :none:`unclaimed` | | |
| 402 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 403 |
| Keep original base pointer on map w/o matched candidate | :none:`unclaimed` | :none:`unclaimed` | | |
| 404 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 405 |
| Pure procedure support for certain directives | :none:`N/A` | :none:`unclaimed` | | |
| 406 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 407 |
| ALLOCATE statement support for allocators | :none:`N/A` | :none:`unclaimed` | | |
| 408 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 409 |
| dispatch construct extension to support end directive | :none:`N/A` | :none:`unclaimed` | | |
| 410 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
.. _OpenMP 5.2 Deprecations: |
| 415 |
|
| 416 |
OpenMP 5.2 Deprecations |
| 417 |
======================= |
| 418 |
|
| 419 |
|
| 420 |
|
| 421 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 422 |
| | C/C++ Status | Fortran Status | Reviews | |
| 423 |
+=============================================================+===========================+===========================+==========================================================================+ |
| 424 |
| Linear clause syntax | :none:`unclaimed` | :none:`unclaimed` | | |
| 425 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 426 |
| The minus operator | :none:`unclaimed` | :none:`unclaimed` | | |
| 427 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 428 |
| Map clause modifiers without commas | :none:`unclaimed` | :none:`unclaimed` | | |
| 429 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 430 |
| The use of allocate directives with ALLOCATE statement | :good:`N/A` | :none:`unclaimed` | | |
| 431 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 432 |
| uses_allocators list syntax | :none:`unclaimed` | :none:`unclaimed` | | |
| 433 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 434 |
| The default clause on metadirectives | :none:`unclaimed` | :none:`unclaimed` | | |
| 435 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 436 |
| The delimited form of the declare target directive | :none:`unclaimed` | :good:`N/A` | | |
| 437 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 438 |
| The use of the to clause on the declare target directive | :none:`unclaimed` | :none:`unclaimed` | | |
| 439 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 440 |
| The syntax of the destroy clause on the depobj construct | :none:`unclaimed` | :none:`unclaimed` | | |
| 441 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 442 |
| keyword source and sink as task-dependence modifiers | :none:`unclaimed` | :none:`unclaimed` | | |
| 443 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 444 |
| interop types in any position on init clause of interop | :none:`unclaimed` | :none:`unclaimed` | | |
| 445 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 446 |
| ompd prefix usage for some ICVs | :none:`unclaimed` | :none:`unclaimed` | | |
| 447 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 448 |
|
| 449 |
.. _OpenMP 6.0 implementation details: |
| 450 |
|
| 451 |
OpenMP 6.0 Implementation Details |
| 452 |
================================= |
| 453 |
|
| 454 |
The following table provides a quick overview of various OpenMP 6.0 features |
| 455 |
and their implementation status. Please post on the |
| 456 |
`Discourse forums (Runtimes - OpenMP category)`_ for more |
| 457 |
information or if you want to help with the |
| 458 |
implementation. |
| 459 |
|
| 460 |
|
| 461 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 462 |
|Feature | C/C++ Status | Fortran Status | Reviews | |
| 463 |
+=============================================================+===========================+===========================+==========================================================================+ |
| 464 |
| free-agent threads | :none:`unclaimed` | :none:`unclaimed` | | |
| 465 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 466 |
| threadset clause | :part:`partial` | :none:`unclaimed` | Parse/Sema/Codegen : https://github.com/llvm/llvm-project/pull/13580 | |
| 467 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 468 |
| Recording of task graphs | :part:`in progress` | :part:`in progress` | clang: jtb20, flang: kparzysz | |
| 469 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 470 |
| Parallel inductions | :none:`unclaimed` | :none:`unclaimed` | | |
| 471 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 472 |
| init_complete for scan directive | :none:`unclaimed` | :none:`unclaimed` | | |
| 473 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 474 |
| loop interchange transformation | :good:`done` | :none:`unclaimed` | Clang (interchange): https://github.com/llvm/llvm-project/pull/93022 | |
| 475 |
| | | | Clang (permutation): https://github.com/llvm/llvm-project/pull/92030 | |
| 476 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 477 |
| loop reverse transformation | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/92916 | |
| 478 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 479 |
| loop stripe transformation | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/119891 | |
| 480 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 481 |
| loop fusion transformation | :part:`in progress` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/139293 | |
| 482 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 483 |
| loop index set splitting transformation | :none:`unclaimed` | :none:`unclaimed` | | |
| 484 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 485 |
| loop transformation apply clause | :none:`unclaimed` | :none:`unclaimed` | | |
| 486 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 487 |
| loop fuse transformation | :good:`done` | :none:`unclaimed` | | |
| 488 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 489 |
| workdistribute construct | | :none:`in progress` | @skc7, @mjklemm | |
| 490 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 491 |
| task_iteration | :none:`unclaimed` | :none:`unclaimed` | | |
| 492 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 493 |
| memscope clause for atomic and flush | :none:`unclaimed` | :none:`unclaimed` | | |
| 494 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 495 |
| transparent clause (hull tasks) | :none:`unclaimed` | :none:`unclaimed` | | |
| 496 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 497 |
| rule-based compound directives | :part:`In Progress` | :part:`In Progress` | kparzysz | |
| 498 |
| | | | Testing for Fortran missing | |
| 499 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 500 |
| C23, C++23 | :none:`unclaimed` | | | |
| 501 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 502 |
| Fortran 2023 | | :none:`unclaimed` | | |
| 503 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 504 |
| decl attribute for declarative directives | :none:`unclaimed` | :none:`unclaimed` | | |
| 505 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 506 |
| C attribute syntax | :none:`unclaimed` | | | |
| 507 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 508 |
| pure directives in DO CONCURRENT | | :none:`unclaimed` | | |
| 509 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 510 |
| Optional argument for all clauses | :none:`partial` | :none:`In Progress` | Parse/Sema (nowait): https://github.com/llvm/llvm-project/pull/159628 | |
| 511 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 512 |
| Function references for locator list items | :none:`unclaimed` | :none:`unclaimed` | | |
| 513 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 514 |
| All clauses accept directive name modifier | :none:`unclaimed` | :none:`unclaimed` | | |
| 515 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 516 |
| Extensions to depobj construct | :none:`unclaimed` | :none:`unclaimed` | | |
| 517 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 518 |
| Extensions to atomic construct | :none:`unclaimed` | :none:`unclaimed` | | |
| 519 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 520 |
| Private reductions | :good:`mostly` | :none:`unclaimed` | Parse/Sema:https://github.com/llvm/llvm-project/pull/129938 | |
| 521 |
| | | | Codegen: https://github.com/llvm/llvm-project/pull/134709 | |
| 522 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 523 |
| Self maps | :part:`partial` | :none:`unclaimed` | parsing/sema done: https://github.com/llvm/llvm-project/pull/129888 | |
| 524 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 525 |
| Release map type for declare mapper | :none:`unclaimed` | :none:`unclaimed` | | |
| 526 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 527 |
| Extensions to interop construct | :none:`unclaimed` | :none:`unclaimed` | | |
| 528 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 529 |
| no_openmp_constructs | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/125933 | |
| 530 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 531 |
| safe_sync and progress with identifier and API | :none:`unclaimed` | :none:`unclaimed` | | |
| 532 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 533 |
| OpenMP directives in concurrent loop regions | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/125621 | |
| 534 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 535 |
| atomics constructs on concurrent loop regions | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/125621 | |
| 536 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 537 |
| Loop construct with DO CONCURRENT | | :part:`In Progress` | | |
| 538 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 539 |
| device_type clause for target construct | :none:`unclaimed` | :none:`unclaimed` | | |
| 540 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 541 |
| nowait for ancestor target directives | :none:`unclaimed` | :none:`unclaimed` | | |
| 542 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 543 |
| New API for devices' num_teams/thread_limit | :none:`unclaimed` | :none:`unclaimed` | | |
| 544 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 545 |
| Host and device environment variables | :none:`unclaimed` | :none:`unclaimed` | | |
| 546 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 547 |
| num_threads ICV and clause accepts list | :none:`unclaimed` | :none:`unclaimed` | | |
| 548 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 549 |
| Numeric names for environment variables | :none:`unclaimed` | :none:`unclaimed` | | |
| 550 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 551 |
| Increment between places for OMP_PLACES | :none:`unclaimed` | :none:`unclaimed` | | |
| 552 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 553 |
| OMP_AVAILABLE_DEVICES envirable | :none:`unclaimed` | :none:`unclaimed` | (should wait for "Traits for default device envirable" being done) | |
| 554 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 555 |
| Traits for default device envirable | :part:`in progress` | :none:`unclaimed` | ro-i | |
| 556 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 557 |
| Optionally omit array length expression | :good:`done` | :none:`unclaimed` | (Parse) https://github.com/llvm/llvm-project/pull/148048, | |
| 558 |
| | | | (Sema) https://github.com/llvm/llvm-project/pull/152786 | |
| 559 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 560 |
| Canonical loop sequences | :part:`in progress` | :part:`in progress` | Clang: https://github.com/llvm/llvm-project/pull/139293 | |
| 561 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 562 |
| Clarifications to Fortran map semantics | :none:`unclaimed` | :none:`unclaimed` | | |
| 563 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 564 |
| default clause at target construct | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/162910 | |
| 565 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 566 |
| ref count update use_device_{ptr, addr} | :none:`unclaimed` | :none:`unclaimed` | | |
| 567 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 568 |
| Clarifications to implicit reductions | :none:`unclaimed` | :none:`unclaimed` | | |
| 569 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 570 |
| ref modifier for map clauses | :part:`In Progress` | :none:`unclaimed` | | |
| 571 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 572 |
| map-type modifiers in arbitrary position | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/90499 | |
| 573 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 574 |
| Lift nesting restriction on concurrent loop | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/125621 | |
| 575 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 576 |
| priority clause for target constructs | :none:`unclaimed` | :none:`unclaimed` | | |
| 577 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 578 |
| changes to target_data construct | :none:`unclaimed` | :none:`unclaimed` | | |
| 579 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 580 |
| Non-const do_not_sync for nowait/nogroup | :none:`unclaimed` | :none:`unclaimed` | | |
| 581 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 582 |
| need_device_addr modifier for adjust_args clause | :part:`partial` | :none:`unclaimed` | Parsing/Sema: https://github.com/llvm/llvm-project/pull/143442 | |
| 583 |
| | | | https://github.com/llvm/llvm-project/pull/149586 | |
| 584 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 585 |
| need_device_ptr modifier for adjust_args clause | :part:`unclaimed` | :none:`unclaimed` | | |
| 586 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 587 |
| Prescriptive num_threads | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/160659 | |
| 588 |
| | | | https://github.com/llvm/llvm-project/pull/146403 | |
| 589 |
| | | | https://github.com/llvm/llvm-project/pull/146404 | |
| 590 |
| | | | https://github.com/llvm/llvm-project/pull/146405 | |
| 591 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 592 |
| Message and severity clauses | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/146093 | |
| 593 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 594 |
| Local clause on declare target | :part:`In Progress` | :none:`unclaimed` | | |
| 595 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 596 |
| groupprivate directive | :part:`In Progress` | :part:`partial` | Flang: kparzysz, mjklemm | |
| 597 |
| | | | | |
| 598 |
| | | | Flang parser: https://github.com/llvm/llvm-project/pull/153807 | |
| 599 |
| | | | Flang sema: https://github.com/llvm/llvm-project/pull/154779 | |
| 600 |
| | | | Clang parse/sema: https://github.com/llvm/llvm-project/pull/158134 | |
| 601 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 602 |
| variable-category on default clause | :good:`done` | :none:`unclaimed` | | |
| 603 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 604 |
| Changes to omp_target_is_accessible | :part:`In Progress` | :part:`In Progress` | | |
| 605 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 606 |
| defaultmap implicit-behavior 'storage' | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/158336 | |
| 607 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 608 |
| defaultmap implicit-behavior 'private' | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/158712 | |
| 609 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 610 |
|
| 611 |
.. _OpenMP 6.1 implementation details: |
| 612 |
|
| 613 |
OpenMP 6.1 Implementation Details (Experimental) |
| 614 |
================================================ |
| 615 |
|
| 616 |
The following table provides a quick overview over various OpenMP 6.1 features |
| 617 |
and their implementation status. Since OpenMP 6.1 has not yet been released, the |
| 618 |
following features are experimental and are subject to change at any time. |
| 619 |
Please post on the `Discourse forums (Runtimes - OpenMP category)`_ for more |
| 620 |
information or if you want to help with the |
| 621 |
implementation. |
| 622 |
|
| 623 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 624 |
|Feature | C/C++ Status | Fortran Status | Reviews | |
| 625 |
+=============================================================+===========================+===========================+==========================================================================+ |
| 626 |
| dyn_groupprivate clause | :part:`In Progress` | :part:`In Progress` | C/C++: kevinsala (https://github.com/llvm/llvm-project/pull/152651 | |
| 627 |
| | | | https://github.com/llvm/llvm-project/pull/152830 | |
| 628 |
| | | | https://github.com/llvm/llvm-project/pull/152831) | |
| 629 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 630 |
| loop flatten transformation | :none:`unclaimed` | :none:`unclaimed` | | |
| 631 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 632 |
| loop grid/tile modifiers for sizes clause | :none:`unclaimed` | :none:`unclaimed` | | |
| 633 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 634 |
| attach map-type modifier | :part:`In Progress` | :none:`unclaimed` | C/C++: @abhinavgaba; | |
| 635 |
| | | | RT: @abhinavgaba (https://github.com/llvm/llvm-project/pull/149036, | |
| 636 |
| | | | https://github.com/llvm/llvm-project/pull/158370) | |
| 637 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 638 |
| need_device_ptr modifier for adjust_args clause | :part:`partial` | :none:`unclaimed` | Clang Parsing/Sema: https://github.com/llvm/llvm-project/pull/168905 | |
| 639 |
| | | | https://github.com/llvm/llvm-project/pull/169558 | |
| 640 |
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+ |
| 641 |
|
| 642 |
OpenMP Extensions |
| 643 |
================= |
| 644 |
|
| 645 |
The following table provides a quick overview over various OpenMP |
| 646 |
extensions and their implementation status. These extensions are not |
| 647 |
currently defined by any standard, so links to associated LLVM |
| 648 |
documentation are provided. As these extensions mature, they will be |
| 649 |
considered for standardization. Please post on the |
| 650 |
`Discourse forums (Runtimes - OpenMP category)`_ to provide feedback. |
| 651 |
|
| 652 |
+------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+ |
| 653 |
|Category | Feature | Status | Reviews | |
| 654 |
+==============================+===================================================================================+==========================+========================================================+ |
| 655 |
| atomic extension | `'atomic' strictly nested within 'teams' | :good:`prototyped` | D126323 | |
| 656 |
| | <https://openmp.llvm.org/docs/openacc/OpenMPExtensions.html#atomicWithinTeams>`_ | | | |
| 657 |
+------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+ |
| 658 |
| device extension | `'ompx_hold' map type modifier | :good:`prototyped` | D106509, D106510 | |
| 659 |
| | <https://openmp.llvm.org/docs/openacc/OpenMPExtensions.html#ompx-hold>`_ | | | |
| 660 |
+------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+ |
| 661 |
| device extension | `'ompx_bare' clause on 'target teams' construct | :good:`prototyped` | #66844, #70612 | |
| 662 |
| | <https://www.osti.gov/servlets/purl/2205717>`_ | | | |
| 663 |
+------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+ |
| 664 |
| device extension | Multi-dim 'num_teams' and 'thread_limit' clause on 'target teams ompx_bare' | :good:`partial` | #99732, #101407, #102715 | |
| 665 |
| | construct | | | |
| 666 |
+------------------------------+-----------------------------------------------------------------------------------+--------------------------+--------------------------------------------------------+ |
| 667 |
|
| 668 |
.. _Discourse forums (Runtimes - OpenMP category): https://discourse.llvm.org/c/runtimes/openmp/35 |