Re: (Re:) RDTSC-based Fortran-callable timer for Opteron/Linux
From: glen herrmannsfeldt (gah_at_ugcs.caltech.edu)
Date: 01/07/05
- Next message: Greg Lindahl: "Re: What compiler to use"
- Previous message: James Van Buskirk: "Re: vectorizing this?"
- In reply to: Greg Lindahl: "Re: (Re:) RDTSC-based Fortran-callable timer for Opteron/Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 07 Jan 2005 10:06:55 -0800
Greg Lindahl wrote:
(snip)
> 4 billion / 2 Ghz = 2 seconds.
> So it's not just theoretical, it rolls over ~ every 2 seconds.
> BTW this instruction is not SMP-safe: different cpus have different
> counters.
As I understand it, they are supposed to be synchronized, but
then how many people would notice, and report the bug, if
they weren't?
You can't really compare results between different threads, and
you will likely see a large count increase on a context switch.
-- glen
- Next message: Greg Lindahl: "Re: What compiler to use"
- Previous message: James Van Buskirk: "Re: vectorizing this?"
- In reply to: Greg Lindahl: "Re: (Re:) RDTSC-based Fortran-callable timer for Opteron/Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|