Johannes Doerfert | 3c8a4c6 | 2022-01-22 22:24:52 | [diff] [blame] | 1 | .. _omp190: |
| 2 | |
| 3 | Redundant barrier eliminated. (device only) |
| 4 | ==================================================================== |
| 5 | |
| 6 | This optimization remark indicates that analysis determined an aligned |
| 7 | barrier in the device code to be redundant. This can occur when state |
| 8 | updates that have been synchronized by the barrier were eliminated too. |
| 9 | See also "Co-Designing an OpenMP GPU Runtime and Optimizations for Near-Zero |
| 10 | Overhead Execution", IPDPS'22. |
| 11 | |
| 12 | Example |
| 13 | ------- |
| 14 | |
| 15 | This optimization will trigger for most target regions if state initialization |
| 16 | was removed as a consequence of "state forwarding". This will trigger for |
| 17 | internal runtime functions so it requires enabling verbose remarks with |
| 18 | `-openmp-opt-verbose-remarks` (prefixed with `-mllvm` for use with clang). |
| 19 | |
| 20 | Diagnostic Scope |
| 21 | ---------------- |
| 22 | |
| 23 | OpenMP optimization remark. |