view openmp/docs/remarks/OMP190.rst @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents c4bab56944e8
children
line wrap: on
line source

.. _omp190:

Redundant barrier eliminated. (device only)
====================================================================

This optimization remark indicates that analysis determined an aligned
barrier in the device code to be redundant. This can occur when state
updates that have been synchronized by the barrier were eliminated too.
See also "Co-Designing an OpenMP GPU Runtime and Optimizations for Near-Zero
Overhead Execution", IPDPS'22.

Example
-------

This optimization will trigger for most target regions if state initialization
was removed as a consequence of "state forwarding". This will trigger for
internal runtime functions so it requires enabling verbose remarks with
`-openmp-opt-verbose-remarks` (prefixed with `-mllvm` for use with clang).

Diagnostic Scope
----------------

OpenMP optimization remark.