]> git.ipfire.org Git - thirdparty/gcc.git/commit
openacc: Warn about "independent" "kernels" loops with data-dependences
authorFrederik Harwath <frederik@codesourcery.com>
Tue, 16 Nov 2021 15:20:15 +0000 (16:20 +0100)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 21 Jun 2022 13:11:52 +0000 (14:11 +0100)
commit01e6774b725ffa667efd818a46795189a281addf
tree642c05e7a357ef77edd93e45aa1b56a931beb2e4
parenta7e863fc4d54fb645fef05f01a024250184964bb
openacc: Warn about "independent" "kernels" loops with data-dependences

This commit concerns loops in OpenACC "kernels" region that have been marked
up with an explicit "independent" clause by the user, but for which Graphite
found data dependences.  A discussion on the private internal OpenACC mailing
list suggested that warning the user about the dependences woud be a more
acceptable solution than reverting the user's decision. This behavior is
implemented by the present commit.

gcc/ChangeLog:

        * common.opt: Add flag Wopenacc-false-independent.
        * omp-offload.cc (oacc_loop_warn_if_false_independent): New function.
        (oacc_loop_fixed_partitions): Call from here.
gcc/ChangeLog.omp
gcc/common.opt
gcc/omp-offload.cc