Skip to content

Commit

Permalink
[docs] Update release notes for OpenMP 5.1 loop transformations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Meinersbur committed Aug 26, 2021
1 parent 34300c3 commit 34ff6a7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions clang/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,24 @@ ABI Changes in Clang
OpenMP Support in Clang
-----------------------

- Support for loop transformation directives from OpenMP 5.1 have been added.
``#pragma omp unroll`` is a standardized alternative to ``#pragma unroll``
(or ``#pragma clang loop unroll(enable)``) but also allows composition with
other OpenMP loop associated constructs as in

.. code-block:: c
#pragma omp parallel for
#pragma omp unroll partial(4)
for (int i = 0; i < n; ++i)
``#pragma omp tile`` applies tiling to a perfect loop nest using a
user-defined tile size.

.. code-block:: c
#pragma omp tile sizes(8,8)
for (int i = 0; i < m; ++i)
for (int j = 0; j < n; ++j)
- ...

CUDA Support in Clang
Expand Down

0 comments on commit 34ff6a7

Please sign in to comment.