From patchwork Mon Nov 9 16:57:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jambor X-Patchwork-Id: 541849 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0BD9D1402A3 for ; Tue, 10 Nov 2015 03:57:46 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=EhwqEp1b; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=dqUV4ENAngWwLG/gM w0R06vrhXlHnrbQ1xnrOV3sLS2cCnp0ZM27FSDQPmEpkKc2tSIMhd6NMZ8um1n1G XsTIRAnEV2gX6KtYdSkInAgP3vjaPp6w60F9SgqB/pRPsYl3YdvpTO7lskX6JWwd bDzUs73DxZYJxo9GvQhgBEvQt0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=default; bh=MxBG2lrFG/n7PekTBwUIJXk TJTY=; b=EhwqEp1b6MB/UrMKGR7u9uDehJwzKBeYRc6XYzjrFkYIPsdeu0LWOXt wUbrFOTLfAaRx/U9aYAcG57N0Oqb3o4q1lbpYaeIl5dtSSDKVh29tVouowwuclWr DDvDIBhDaTgQeKJl8lto18nUtbtp1ZME3RTZCgDC70YrkoQzg0FE= Received: (qmail 68384 invoked by alias); 9 Nov 2015 16:57:39 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 68369 invoked by uid 89); 9 Nov 2015 16:57:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 09 Nov 2015 16:57:37 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C303DACA4; Mon, 9 Nov 2015 16:57:14 +0000 (UTC) Date: Mon, 9 Nov 2015 17:57:34 +0100 From: Martin Jambor To: Joseph Myers Cc: GCC Patches , Jakub Jelinek Subject: Re: [hsa 1/12] Configuration and offloading-related changes Message-ID: <20151109165734.GF14925@virgil.suse.cz> Mail-Followup-To: Joseph Myers , GCC Patches , Jakub Jelinek References: <20151105215108.GC9264@virgil.suse.cz> <20151105215329.GD9264@virgil.suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes On Thu, Nov 05, 2015 at 10:47:15PM +0000, Joseph Myers wrote: > On Thu, 5 Nov 2015, Martin Jambor wrote: > > > libgomp plugin to be built. Because the plugin needs to use HSA > > run-time library, I have introduced options --with-hsa-runtime (and > > more precise --with-hsa-include and --with-hsa-lib) to help find it. > > New configure options should be documented in install.texi. Right, I am about to commit the following patch to the branch (I have checked the make info output and it looks good). Thanks for the reminder. Martin [hsa] Document configuration changes 2015-11-09 Martin Jambor * install.texi (Configuration): Describe hsa --enable-offload-targets option, add description of --with-hsa-runtime, --with-hsa-runtime-include and --with-hsa-runtime-lib diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 57399ed..6984c40 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -1982,6 +1982,22 @@ specifying paths @var{path1}, @dots{}, @var{pathN}. % @var{srcdir}/configure \ --enable-offload-target=i686-unknown-linux-gnu=/path/to/i686/compiler,x86_64-pc-linux-gnu @end smallexample + +If @samp{hsa} is specified as one of the targets, the compiler will be +built with support for HSA GPU accelerators. Because the same +compiler will emit the accelerator code, no path should be specified. + +@item --with-hsa-runtime=@var{pathname} +@itemx --with-hsa-runtime-include=@var{pathname} +@itemx --with-hsa-runtime-lib=@var{pathname} + +If you configure GCC with HSA offloading but do not have the HSA +run-time library installed in a standard location then you can +explicitely specify the directory where they are installed. The +@option{--with-hsa=@/@var{hsainstalldir}} option is a shorthand for +@option{--with-hsa-lib=@/@var{hsainstalldir}/lib} and +@option{--with-hsa-include=@/@var{hsainstalldir}/include}. + @end table @subheading Cross-Compiler-Specific Options