[ptx] partitioning optimization

Nathan Sidwell nathan@acm.org
Fri Nov 13 20:07:00 GMT 2015


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_offload_nvptx which tries to see if
> -foffload=nvptx gives an error (I would hope it does if it's unsupported).

This patch seems to do the trick.  tested on  an offload-aware build (passes), 
and a regular x86_64-linux build (skipped as unsupported).

ok?

nathan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: trunk-sese-test.patch
Type: text/x-patch
Size: 1626 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151113/1f5d0619/attachment.bin>


More information about the Gcc-patches mailing list