Re: [ptx] partitioning optimization

2015-11-23 Thread Jakub Jelinek
On Mon, Nov 23, 2015 at 08:46:30AM +0100, Thomas Schwinge wrote: > Here, -fopenacc induces -lgomp. So, we'll either need a (dummy?) libgomp > available to link against in gcc/testsuite/, or come up with a way to do > LTO/offloading compilation without actually linking (libgomp into) the > final ex

Re: [ptx] partitioning optimization

2015-11-22 Thread Thomas Schwinge
Hi! On Fri, 13 Nov 2015 21:22:11 +0100, Bernd Schmidt wrote: > On 11/13/2015 09:06 PM, Nathan Sidwell wrote: > > On 11/11/15 09:19, Bernd Schmidt wrote: > >> On 11/11/2015 02:59 PM, Nathan Sidwell wrote: > >>> That's not the problem. How to conditionally enable the test is the > >>> difficulty.

Re: [ptx] partitioning optimization

2015-11-13 Thread Bernd Schmidt
On 11/13/2015 09:06 PM, Nathan Sidwell wrote: On 11/11/15 09:19, Bernd Schmidt wrote: On 11/11/2015 02:59 PM, Nathan Sidwell wrote: That's not the problem. How to conditionally enable the test is the difficulty. I suspect porting something concerning accel_compiler from the libgomp testsuite

Re: [ptx] partitioning optimization

2015-11-13 Thread Nathan Sidwell
On 11/11/15 09:19, Bernd Schmidt wrote: On 11/11/2015 02:59 PM, Nathan Sidwell wrote: That's not the problem. How to conditionally enable the test is the difficulty. I suspect porting something concerning accel_compiler from the libgomp testsuite is needed? Maybe a check_effective_target_off

Re: [ptx] partitioning optimization

2015-11-11 Thread Thomas Schwinge
Hi! On Wed, 11 Nov 2015 08:59:17 -0500, Nathan Sidwell wrote: > On 11/11/15 07:06, Bernd Schmidt wrote: > > On 11/10/2015 11:33 PM, Nathan Sidwell wrote: > >> I've been unable to introduce a testcase for this. (But you still committed an update to gcc/testsuite/ChangeLog.) You'll need to put su

Re: [ptx] partitioning optimization

2015-11-11 Thread Bernd Schmidt
On 11/11/2015 02:59 PM, Nathan Sidwell wrote: That's not the problem. How to conditionally enable the test is the difficulty. I suspect porting something concerning accel_compiler from the libgomp testsuite is needed? Maybe a check_effective_target_offload_nvptx which tries to see if -fofflo

Re: [ptx] partitioning optimization

2015-11-11 Thread Nathan Sidwell
On 11/11/15 07:06, Bernd Schmidt wrote: On 11/10/2015 11:33 PM, Nathan Sidwell wrote: I've committed this patch to trunk. It implements a partitioning optimization for a loop partitioned over both vector and worker axes. We can elide the inner vector partitioning state propagation, if there are

Re: [ptx] partitioning optimization

2015-11-11 Thread Nathan Sidwell
On 11/10/15 17:45, Ilya Verbin wrote: I've been unable to introduce a testcase for this. The difficulty is we want to check an rtl dump from the acceleration compiler, and there doesn't appear to be existing machinery for that in the testsuite. Perhaps something to be added later? I haven't tr

Re: [ptx] partitioning optimization

2015-11-11 Thread Bernd Schmidt
On 11/10/2015 11:33 PM, Nathan Sidwell wrote: I've committed this patch to trunk. It implements a partitioning optimization for a loop partitioned over both vector and worker axes. We can elide the inner vector partitioning state propagation, if there are no intervening instructions in the worke

Re: [ptx] partitioning optimization

2015-11-10 Thread Ilya Verbin
> I've been unable to introduce a testcase for this. The difficulty is we want > to check an rtl dump from the acceleration compiler, and there doesn't > appear to be existing machinery for that in the testsuite. Perhaps > something to be added later? I haven't tried it, but doesn't /* { dg-optio