[Bug target/85486] [og7, nvptx] ref-1.C fails with vector length 128
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 7 10:02:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85486
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Author: vries
Date: Mon Jan 7 10:01:49 2019
New Revision: 267640
URL: https://gcc.gnu.org/viewcvs?rev=267640&root=gcc&view=rev
Log:
[nvptx] Force vl32 if calling vector-partitionable routines
With PTX_MAX_VECTOR_LENGTH set to larger than PTX_WARP_SIZE, routines can be
called from offloading regions with vector-size set to larger than warp size.
OTOH, vector-partitionable routines assume warp-sized vector length.
Detect if we're calling a vector-partitionable routine from an offloading
region, and if so, fall back to warp-sized vector length in that region.
2019-01-07 Tom de Vries <tdevries@suse.de>
PR target/85486
* config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
function.
(nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
routines.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/nvptx/nvptx.c
More information about the Gcc-bugs
mailing list