Re: [OpenACC 3/11] new target hook

2015-10-27 Thread Nathan Sidwell
On 10/22/15 01:15, Jakub Jelinek wrote: On Wed, Oct 21, 2015 at 03:13:26PM -0400, Nathan Sidwell wrote: 2015-10-20 Nathan Sidwell * target.def (fork_join): New GOACC hook. * targhooks.h (default_goacc_fork_join): Declare. * omp-low.c (default_goacc_forkjoin): New.

Re: [OpenACC 3/11] new target hook

2015-10-22 Thread Nathan Sidwell
On 10/22/15 04:15, Jakub Jelinek wrote: On Wed, Oct 21, 2015 at 03:13:26PM -0400, Nathan Sidwell wrote: +/* Determine whether fork & joins are needed. */ + +static bool +nvptx_xform_fork_join (gcall *call, const int dims[], + bool ARG_UNUSED (is_fork)) Why is this not c

Re: [OpenACC 3/11] new target hook

2015-10-22 Thread Jakub Jelinek
On Wed, Oct 21, 2015 at 03:13:26PM -0400, Nathan Sidwell wrote: > 2015-10-20 Nathan Sidwell > > * target.def (fork_join): New GOACC hook. > * targhooks.h (default_goacc_fork_join): Declare. > * omp-low.c (default_goacc_forkjoin): New. > * doc/tm.texi.in (TARGET_GOACC_FOR

Re: [OpenACC 3/11] new target hook

2015-10-21 Thread Nathan Sidwell
This patch implements a new OpenACC target hook. It is used during device-specific lowering and allows a backend to indicate whether it needs to know about a fork/join for a particular axis. For instance, in PTX we don't care about gang-level fork and join. We also don't care if the size of