From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1436 invoked by alias); 12 Nov 2015 11:19:58 -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 1426 invoked by uid 89); 12 Nov 2015 11:19:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 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; Thu, 12 Nov 2015 11:19:57 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 2E5A3C0AED31; Thu, 12 Nov 2015 11:19:56 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-34.ams2.redhat.com [10.36.116.34]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tACBJrJu030737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 12 Nov 2015 06:19:54 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id tACBJpV1002661; Thu, 12 Nov 2015 12:19:52 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id tACBJoZe002660; Thu, 12 Nov 2015 12:19:50 +0100 Date: Thu, 12 Nov 2015 11:19:00 -0000 From: Jakub Jelinek To: Richard Biener , GCC Patches Subject: Re: [hsa 5/12] New HSA-related GCC options Message-ID: <20151112111950.GA5675@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20151105215108.GC9264@virgil.suse.cz> <20151105215831.GH9264@virgil.suse.cz> <20151109165856.GH14925@virgil.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151109165856.GH14925@virgil.suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg01485.txt.bz2 On Mon, Nov 09, 2015 at 05:58:56PM +0100, Martin Jambor wrote: > > But I don't see any way to disable it on the command line? (no switch?) > > No, the switch is -foffload, which has missing documentation (PR > 67300) and is only described at https://gcc.gnu.org/wiki/Offloading > Nevertheless, the option allows the user to specify compiler option > -foffload=disable and no offloading should happen, not even HSA. The > user can also enumerate just the offload targets they want (and pass > them special command line stuff). > > It seems I have misplaced a hunk in the patch series. Nevertheless, > in the first patch (with configuration stuff), there is a change to > opts.c which scans the -foffload= contents and sets the flag variable > if hsa is not present. > > Whenever the compiler has to decide whether HSA is enabled for the > given compilation or not, it has to look at this variable (if > configured for HSA). Buut what is the difference between -foffload=disable or -foffload={list not including hsa} and the new param? If you don't gridify, you don't emit any kernels... Jakub