Add user-friendly diagnostics for OpenACC loop parallelism assigned

Programming / Compilers / GCC - tschwinge [138bc75d-0d04-0410-961f-82ee72b054a4] - 14 December 2018 20:41 EST

gcc/
- omp-offload.c (inform_oacc_loop): New function. (execute_oacc_device_lower): Use it to display loop parallelism. gcc/testsuite/
- c-c++-common/goacc/note-parallelism.c: New test.
- gfortran.dg/goacc/note-parallelism.f90: New test.
- c-c++-common/goacc/classify-kernels-unparallelized.c: Update.
- c-c++-common/goacc/classify-kernels.c: Likewise.
- c-c++-common/goacc/classify-parallel.c: Likewise.
- c-c++-common/goacc/classify-routine.c: Likewise.
- c-c++-common/goacc/kernels-1.c: Likewise.
- c-c++-common/goacc/kernels-double-reduction-n.c: Likewise.
- c-c++-common/goacc/kernels-double-reduction.c: Likewise.
- gfortran.dg/goacc/classify-kernels-unparallelized.f95: Likewise.
- gfortran.dg/goacc/classify-kernels.f95: Likewise.
- gfortran.dg/goacc/classify-parallel.f95: Likewise.
- gfortran.dg/goacc/classify-routine.f95: Likewise.
- gfortran.dg/goacc/kernels-loop-inner.f95: Likewise.

75180da2a55 Add user-friendly diagnostics for OpenACC loop parallelism assigned
gcc/ChangeLog | 6 +
gcc/omp-offload.c | 49 +++++++-
gcc/testsuite/ChangeLog | 18 +++
.../goacc/classify-kernels-unparallelized.c | 3 +-
.../c-c++-common/goacc/classify-kernels.c | 3 +-
.../c-c++-common/goacc/classify-parallel.c | 3 +-
.../c-c++-common/goacc/classify-routine.c | 3 +-
gcc/testsuite/c-c++-common/goacc/kernels-1.c | 10 +-
.../goacc/kernels-double-reduction-n.c | 3 +-
.../c-c++-common/goacc/kernels-double-reduction.c | 3 +-
.../c-c++-common/goacc/note-parallelism.c | 115 ++++++++++++++++++
.../goacc/classify-kernels-unparallelized.f95 | 3 +-
.../gfortran.dg/goacc/classify-kernels.f95 | 3 +-
.../gfortran.dg/goacc/classify-parallel.f95 | 3 +-
.../gfortran.dg/goacc/classify-routine.f95 | 3 +-
.../gfortran.dg/goacc/kernels-loop-inner.f95 | 3 +-
.../gfortran.dg/goacc/note-parallelism.f90 | 131 +++++++++++++++++++++
17 files changed, 346 insertions(+), 16 deletions(-)

Upstream: gcc.gnu.org


  • Share