Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Nov 2015 20:56:38 +0100 (CET)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        Anton Shterenlikht <mexas@bris.ac.uk>
Cc:        fortran@freebsd.org, Tijl Coosemans <tijl@FreeBSD.org>
Subject:   Re: advice on gfortran options for a port
Message-ID:  <alpine.LSU.2.20.1511162051410.4990@anthias>
In-Reply-To: <201511161702.tAGH2UUB084730@mech-as222.men.bris.ac.uk>
References:  <201511161702.tAGH2UUB084730@mech-as222.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <grosser@fim.uni-passau.de> and Sebastian Pop           
<sebpop@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LSU.2.20.1511162051410.4990>