From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8665 invoked by alias); 13 Nov 2015 20:22:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 8653 invoked by uid 89); 13 Nov 2015 20:22:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 13 Nov 2015 20:22:14 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 40B80C0B588A; Fri, 13 Nov 2015 20:22:13 +0000 (UTC) Received: from localhost.localdomain (vpn1-7-12.ams2.redhat.com [10.36.7.12]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tADKMBtL006417; Fri, 13 Nov 2015 15:22:12 -0500 Subject: Re: [ptx] partitioning optimization To: Nathan Sidwell , GCC Patches References: <564270D6.6090303@acm.org> <56432F50.6000208@redhat.com> <564349B5.5050202@acm.org> <56434E7D.4070803@redhat.com> <564642E0.6090303@acm.org> From: Bernd Schmidt Message-ID: <56464673.3060702@redhat.com> Date: Fri, 13 Nov 2015 20:22:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <564642E0.6090303@acm.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg01769.txt.bz2 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 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). I think this is fine. Bernd