[og7] vector_length extension part 2: Generalize state propagation and synchronization

Tom de Vries Tom_deVries@mentor.com
Thu Apr 5 14:06:00 GMT 2018


On 04/03/2018 05:00 PM, Tom de Vries wrote:
> On 03/02/2018 05:55 PM, Cesar Philippidis wrote:
>>     * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
> 
> One last thing: this variable needs to be reset to zero for every function.
> 
> Without this reset, we can generated different code for a function 
> depending on whether there's another function in front or not.

In the previous commit, I set that variable in nvptx_option_override, 
but as I've found out that's not enough.

This patch does the init in nvptx_set_current_function.

Build x86_64 with nvptx accelerator and reg-tested libgomp.

Committed.

Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-nvptx-Add-per-function-initialization-of-oacc_broadcast_partition.patch
Type: text/x-patch
Size: 640 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180405/d83db5dc/attachment.bin>


More information about the Gcc-patches mailing list