Re: gprof and optimization
- From: Andy Vaught <andy@xxxxxxxxxxxxxx>
- Date: Thu, 26 May 2005 16:15:11 -0700
On Thu, 26 May 2005, Jean-Baptiste FAURE wrote:
> Dear all,
>
> I have a curious problem with my code using gprof profiler with g95
> compiler : if I compile using -pg option the code run faster,
> iterative computations are more stable (less iterations) and results
> are different. The other options are -O3 -malign-double
> -march=pentium4m.
>
> I don't know where I can search, compiler options, optimization, in
> the source code ?
I've noticed that -O2 is often faster than -O3 with g95. Clearly what
is happening in your situation is that the profiling hooks are changing
the program (surprisingly) to make it faster. I would have to say this is
due to the relatively new gcc backend. The version currently being used
is only a month or two old, so I wouldn't expect dramatic improvements.
I would be concerned about how different the results are and the
stability of the algorithms involved. Ideally, things should converge to
the same thing.
Andy
.
- Follow-Ups:
- Re: gprof and optimization
- From: Jean-Baptiste FAURE
- Re: gprof and optimization
- References:
- gprof and optimization
- From: Jean-Baptiste FAURE
- gprof and optimization
- Prev by Date: Re: My philosophy
- Next by Date: Re: gcc 4.0 and Fortran
- Previous by thread: gprof and optimization
- Next by thread: Re: gprof and optimization
- Index(es):
Relevant Pages
|
|