public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* OpenMP+gfortran performance extremely variable between dlopen's of libgomp
@ 2008-01-15  2:33 Anand Patil
  2008-01-15  9:19 ` Nick Maclaren
  0 siblings, 1 reply; 2+ messages in thread
From: Anand Patil @ 2008-01-15  2:33 UTC (permalink / raw)
  To: gcc-help

Hi all,

As in my last help request, I'm using gfortran 4.2.1 from Ubuntu
Gutsy's apt-get, with the patch from bug 28482 (
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28482 ) applied so that I
can dlopen libgomp. I find that the performance of my subroutines
varies greatly if I reload libgomp, but if I rerun the subroutines
several times for the same load of libgomp performance is fairly
constant. Other information that may be relevant:

- The number of threads stays the same (I have OMP_DYNAMIC=False).
- The relative speedup from OpenMP (wall time / CPU time) stays
relatively constant.

I don't even know where to start looking for the source of this
behavior. Any tips?

Thanks,
Anand Patil

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: OpenMP+gfortran performance extremely variable between dlopen's of libgomp
  2008-01-15  2:33 OpenMP+gfortran performance extremely variable between dlopen's of libgomp Anand Patil
@ 2008-01-15  9:19 ` Nick Maclaren
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Maclaren @ 2008-01-15  9:19 UTC (permalink / raw)
  To: gcc-help

"Anand Patil" <anand.prabhakar.patil@gmail.com> writes:
>
>  I find that the performance of my subroutines
> varies greatly if I reload libgomp, but if I rerun the subroutines
> several times for the same load of libgomp performance is fairly
> constant. Other information that may be relevant:
> 
> - The number of threads stays the same (I have OMP_DYNAMIC=False).
> - The relative speedup from OpenMP (wall time / CPU time) stays
> relatively constant.
> 
> I don't even know where to start looking for the source of this
> behavior. Any tips?

Almost certainly physical memory layout.  If you have to ask, don't
bother trying to chase it down.  The reason is that operating systems
people are unreasonably prejudiced (and have been for 40+ years)
against providing the relevant information (let alone control) to
applications programmers.

Most Linuces don't even provide access to the hardware performance
registers.


Regards,
Nick Maclaren.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-14  8:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-15  2:33 OpenMP+gfortran performance extremely variable between dlopen's of libgomp Anand Patil
2008-01-15  9:19 ` Nick Maclaren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).