From owner-freebsd-fortran@freebsd.org Mon Nov 16 19:56:45 2015 Return-Path: Delivered-To: freebsd-fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C5662A30885 for ; Mon, 16 Nov 2015 19:56:45 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AE5721144 for ; Mon, 16 Nov 2015 19:56:45 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: by mailman.ysv.freebsd.org (Postfix) id AE555A30884; Mon, 16 Nov 2015 19:56:45 +0000 (UTC) Delivered-To: fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ADF3AA30883 for ; Mon, 16 Nov 2015 19:56:45 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from ainaz.pair.com (ainaz.pair.com [209.68.2.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 820651143; Mon, 16 Nov 2015 19:56:44 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from [10.168.81.162] (178.115.129.51.wireless.dyn.drei.com [178.115.129.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ainaz.pair.com (Postfix) with ESMTPSA id B1C7F3F423; Mon, 16 Nov 2015 14:56:41 -0500 (EST) Date: Mon, 16 Nov 2015 20:56:38 +0100 (CET) From: Gerald Pfeifer To: Anton Shterenlikht cc: fortran@freebsd.org, Tijl Coosemans Subject: Re: advice on gfortran options for a port In-Reply-To: <201511161702.tAGH2UUB084730@mech-as222.men.bris.ac.uk> Message-ID: References: <201511161702.tAGH2UUB084730@mech-as222.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-fortran@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Fortran on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2015 19:56:45 -0000 On Mon, 16 Nov 2015, Anton Shterenlikht wrote: > However, what is the best way to allow building > with the default compiler with no graphite optimisation > options, and optinally with gcc6 with graphite, with > the above optimisations? The general ports infrastructure does not easily support this. If you build locally, you could build gcc6-devel accordingly and add an option to the other port(s). > Finally, the info page for gcc6 has: > > -ftree-loop-linear > -floop-interchange > -floop-strip-mine > -floop-block > -floop-unroll-and-jam > Perform loop nest optimizations. Same as -floop-nest-optimize. To > use this code transformation, GCC has to be configured with > --with-isl to enable the Graphite loop transformation > infrastructure. > > This is not very clear. > Does it mean that all 5 mentioned options are equivalent to the > single option -floop-nest-optimize? This is a good question. Best check with gcc-help@gcc.gnu.org and copy Tobias Grosser and Sebastian Pop as two of the Graphite maintainers. > So is there a more detailed description of each of these options? I believe there used to be one in gcc5-devel. Interesting that this got lost in the newer version. Gerald