[nvptx] Enable large vectors

Programming / Compilers / GCC - vries [138bc75d-0d04-0410-961f-82ee72b054a4] - 12 January 2019 22:17 EST

Allow vector_length clauses to accept values larger than warp size. Note that this does not enable setting vector_length to values larger than warp size using
-fopenacc-dim.

2019-01-12 Tom de Vries

- config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector lengths into account.

- testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
vector length to be 128.
- testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector length 2097152 to be reduced to 1024 instead of 32.

5a9f13c0c01 [nvptx] Enable large vectors
gcc/ChangeLog | 5 +++++
gcc/config/nvptx/nvptx.c | 2 +-
libgomp/ChangeLog | 7 +++++++
libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-dims.c | 4 ++--
libgomp/testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c | 5 ++---
5 files changed, 17 insertions(+), 6 deletions(-)

Upstream: gcc.gnu.org


  • Share