OpenACC 2.5 kernels construct: num_gangs, num_workers, vector_length clauses

Programming / Compilers / GCC - tschwinge [138bc75d-0d04-0410-961f-82ee72b054a4] - 23 May 2017 11:47 EDT

gcc/c/
- c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS", "VECTOR_LENGTH". gcc/cp/
- parser.c (OACC_KERNELS_CLAUSE_MASK): Add "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS", "VECTOR_LENGTH". gcc/fortran/
- openmp.c (OACC_KERNELS_CLAUSES): Add "OMP_CLAUSE_NUM_GANGS", "OMP_CLAUSE_NUM_WORKERS", "OMP_CLAUSE_VECTOR_LENGTH". gcc/
- omp-offload.c (execute_oacc_device_lower): Remove the parallelism dimensions function attributes for unparallelized OpenACC kernels constructs. gcc/testsuite/
- c-c++-common/goacc/parallel-dims-1.c: Update.
- c-c++-common/goacc/parallel-dims-2.c: Likewise.
- c-c++-common/goacc/routine-1.c: Likewise.
- c-c++-common/goacc/uninit-dim-clause.c: Likewise.
- g++.dg/goacc/template.C: Likewise.
- gfortran.dg/goacc/kernels-tree.f95: Likewise.
- gfortran.dg/goacc/routine-3.f90: Likewise.
- gfortran.dg/goacc/sie.f95: Likewise.
- gfortran.dg/goacc/uninit-dim-clause.f95: Likewise. libgomp/
- testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
- testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
- testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.

9d5c2cc OpenACC 2.5 kernels construct: num_gangs, num_workers, vector_length clauses
gcc/ChangeLog | 6 +
gcc/c/ChangeLog | 6 +
gcc/c/c-parser.c | 3 +
gcc/cp/ChangeLog | 6 +
gcc/cp/parser.c | 3 +
gcc/fortran/ChangeLog | 5 +
gcc/fortran/openmp.c | 3 +-
gcc/omp-offload.c | 9 ++
gcc/testsuite/ChangeLog | 12 ++
gcc/testsuite/c-c++-common/goacc/parallel-dims-1.c | 3 +
gcc/testsuite/c-c++-common/goacc/parallel-dims-2.c | 152 +++++++++++++++++++--
gcc/testsuite/c-c++-common/goacc/routine-1.c | 7 +
.../c-c++-common/goacc/uninit-dim-clause.c | 20 ++-
gcc/testsuite/g++.dg/goacc/template.C | 4 +
gcc/testsuite/gfortran.dg/goacc/kernels-tree.f95 | 6 +-
gcc/testsuite/gfortran.dg/goacc/routine-3.f90 | 6 +
gcc/testsuite/gfortran.dg/goacc/sie.f95 | 86 +++++++++++-
.../gfortran.dg/goacc/uninit-dim-clause.f95 | 18 ++-
libgomp/ChangeLog | 4 +
.../libgomp.oacc-c-c++-common/kernels-loop-2.c | 21 ++-
.../libgomp.oacc-c-c++-common/parallel-dims.c | 35 +++++
.../libgomp.oacc-fortran/kernels-loop-2.f95 | 13 +-
22 files changed, 397 insertions(+), 31 deletions(-)

Upstream: gcc.gnu.org


  • Share