From: hobbs@steven.zko.dec.com (Steven Hobbs)
Subject: Re: Compaq Fortran for Linux Alpha Systems now available for Beta Test!
Date: 1999/07/02 [thread overview]
Message-ID: <7liik8$qh0$1@lead.zk3.dec.com> (raw)
In-Reply-To: 377C9EE4.B11384C9@nat.vu.nl
In article <377C9EE4.B11384C9@nat.vu.nl>, "C.Simmendinger" <chrisi@nat.vu.nl> writes:
..
>Dunno, what exactly happens at which optimization level, but i betit isn't just
>loop transformation (that would be KAP style on -O5 with
>src level cache blocking, not applicable to my case ).
The optimization levels are documented in the Fortran man page. Do
"man fort" after installing Compaq Fortran.
The compiler default is -O4 which turns on all optimizations that are
generally applicable for improving performance.
The -O5 option turns on software pipelining (also controlled by
-pipeline), loop transformations (also controlled by
-transform_loops), and a few other fancy optimizations. These
optimizations are not the default because they are not applicable to
all Fortran programs and because they will occasionally hurt
performance rather than helping it. The -O5 options should only be
used after the programmer benchmarks the before and after performance
effects.
If you are having a problem with excessive code size (but very few
applications are code size sensitive) then you might try lowering the
optimization level to -O2. -O2 disables most optimizations that
result in code size increases.
>I'd guess the GEM compiler analyzes the data flow with
>more emphasis on a prefetch of data, rather than
>on details of loop optimization ?
>Could someone shed light on this :-) ?
>But probably that's something very secret.
GEM does prefetching and other other memory hierarchy optimizations as
a side effect of loop unrolling. Therefore these optimizations start
at optimization level -O3 (unless the "-unroll 1" option disables
unrolling). Increasing loop unrolling from the default of "-unroll 4"
to "-unroll 8" can sometimes improve the effects of memory hierarchy
optimizations. Again, do before and after benchmarking when adjusting
the "-unroll n" option.
The default optimization settings for Compaq Fortran give very good
performance. Users who want leading edge performance should also try:
-unroll n
-O5, or -pipeline, or -transform_loops
-arch host, or -tune host
-fast (includes many useful options including -arch host)
Before and after benchmarking is useful when modifying these options.
The "man fort" page gives an outline of all the command line options.
next prev parent reply other threads:[~1999-07-02 4:00 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-30 4:00 Compaq Fortran for Linux Alpha Systems now available for Beta Test! Steve Lionel
1999-06-30 4:00 ` C.Simmendinger
1999-06-30 4:00 ` Toon Moene
1999-06-30 4:00 ` C.Simmendinger
1999-06-30 4:00 ` Michael Kagalenko
1999-07-01 4:00 ` Chris Morgan
1999-07-05 4:00 ` James Prentice
1999-07-05 4:00 ` Paul DeMone
1999-06-30 4:00 ` Steve Lionel
1999-07-01 4:00 ` Toon Moene
1999-07-02 4:00 ` C.Simmendinger
1999-07-02 4:00 ` Toon Moene
1999-07-02 4:00 ` C.Simmendinger
1999-07-02 4:00 ` Steven Hobbs [this message]
1999-07-02 4:00 ` Toon Moene
1999-07-02 4:00 ` Jim Gettys
1999-07-02 4:00 ` Toon Moene
1999-06-30 4:00 ` Michael Kagalenko
1999-06-30 4:00 ` Thor Lancelot Simon
1999-06-30 4:00 ` Michael Kagalenko
1999-06-30 4:00 ` Steve Lionel
1999-07-01 4:00 ` Peter da Silva
1999-07-01 4:00 ` Graham Allan
1999-07-01 4:00 ` Thor Lancelot Simon
1999-06-30 4:00 ` Brett Viren
1999-06-30 4:00 ` Greg Lindahl
1999-07-01 4:00 ` Stuart Midgley
1999-07-02 4:00 ` mustang
1999-07-05 4:00 ` Stefan A. Deutscher
1999-07-05 4:00 ` Larry Kilgallen
1999-07-05 4:00 ` Hartmann Schaffer
1999-07-05 4:00 ` Greg Lindahl
1999-07-06 4:00 ` Steve Lionel
1999-07-07 4:00 ` Edward Lee
1999-07-07 4:00 ` Falk Hueffner
1999-07-07 4:00 ` Gary
1999-07-07 4:00 ` Richard Maine
1999-07-07 4:00 ` Gary Scott
1999-07-09 4:00 ` Gary Scott
1999-07-09 4:00 ` Stefan A. Deutscher
1999-07-09 4:00 ` Greg Lindahl
1999-07-09 4:00 ` Emil Briggs
1999-07-10 4:00 ` Gary Scott
1999-07-08 4:00 ` Christopher Browne
1999-07-08 4:00 ` Edward Lee
1999-07-11 4:00 ` Christian Hasse
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox