Re: forall and do loop
- From: Tim Prince <timothyprince@xxxxxxxxxxxxx>
- Date: Fri, 27 Jul 2007 06:40:22 -0700
highegg wrote:
On Jul 27, 2:33 pm, Tobias Burnus <bur...@xxxxxxxx> wrote:Much of the publicity and development for profiling feedback centers around SPEC2000, as that benchmark considers it a "base" optimization. This position has changed since.On Jul 27, 11:55 am, highegg <high...@xxxxxxxxx> wrote:That's cool - I didn't know.
Commercial compilers (Intel, EkoPath) even offer the possibility toGCC has the same - does this make GCC a commercial compiler? ;-)
use the profiling information for subsequent optimizations, which is
potentially very powerful approach.
GCC has the options: -fprofile-generate and -fprofile-use.
Relating to the original topic: if forall doesn't have any importance in SPEC2000, you could suspect that profiling feedback hasn't been trained to do much for it.
Profile feedback options don't have many convenience features. Commercial compilers may have one advantage over gfortran: profiling data independent of specific compiler flag options makes it unnecessary to re-profile each time a new flag is tried.
This situation applies to commercial compilers as well.
Depending on the program, performance might be gained or lost. For the
current gfortran 4.3 and the Polyhedron test suite, seehttp://physik.fu-berlin.de/~tburnus/gcc-trunk/benchmark/#rt
As one test gets 24% slower, the few per cent gains for the other
tests average out (in the geometric mean).
(I filled a bugreport about it, #32913.)
For real applications, it is necessary to profile across a representative group of data sets, to avoid the common situation of optimizing a single case at the expense of several others.
.
- References:
- forall and do loop
- From: aeroguy
- Re: forall and do loop
- From: glen herrmannsfeldt
- Re: forall and do loop
- From: aeroguy
- Re: forall and do loop
- From: highegg
- Re: forall and do loop
- From: aeroguy
- Re: forall and do loop
- From: highegg
- Re: forall and do loop
- From: Tobias Burnus
- Re: forall and do loop
- From: highegg
- forall and do loop
- Prev by Date: Re: forall and do loop
- Next by Date: Re: forall and do loop
- Previous by thread: Re: forall and do loop
- Next by thread: Re: forall and do loop
- Index(es):
Relevant Pages
|