[nvptx] Enable large vectors
authorTom de Vries <tdevries@suse.de>
Sat, 12 Jan 2019 22:17:42 +0000 (22:17 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sat, 12 Jan 2019 22:17:42 +0000 (22:17 +0000)
commit2b9d9e393766d2fa6e2dd5f361d0db14872cf261
treef7686faf57ee3b6e79c8818d2179d328251d77d4
parent6f7814d08fd89dc9f41807568ef26c3ffe498dba
[nvptx] Enable large vectors

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  <tdevries@suse.de>

* 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.

From-SVN: r267889
gcc/ChangeLog
gcc/config/nvptx/nvptx.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
libgomp/testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c