Re: gfortran, g95, and dual-core
- From: Charles Russell <NOSPAM@xxxxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 14:38:17 -0600
Richard Maine wrote:
Charles Russell <NOSPAM@xxxxxxxxxxxxx> wrote:
Can gfortran or g95 gain anything from dual- or multi-core processors in
either speed of compilation or speed of execution?
If nothing else, having a multiple cores allows mltiple processes to run
at the same time. This is, of course, an issue that has come up decades
ago with multi-processor archiertctures long before the current cop of
multi-core processors. Even on a single-use machine, you at least get
some benefit in that your program can get all of a core, while other
overhead stuff (such as the operating system and graphics user
interface) can use the other. That's overly simplified, just for
illustration of the idea.
The background activities on my Windows XP box are using only a few percent of the CPU time, so I don't see much to gain there. Vista may be worse in this regard, as in so many others.
Does anything besides clock speeed matter much?
Um. Wow! That's a loaded question, and one that people spend whole
careers on. I think you just asked what matters in terms of program
performance. Perhaps you meant it in a more narrow sense. If so, I
missed it.
Many, many things matter. The details are complicated and vary widely as
a function of just about everything, probably including the phase of the
moon.
Today, many programs are limitted by memory bandwidth, which is
typically (mostly) independent of CPU clock speed. That's why cache is
such a big deal and spawns a large number of issues about taking best
advantage of cache.
Had to look up cache in Wikipedia. I presume you are talking about what they call "CPU cache".
So computing time is not simply a matter of counting "flops" (defined in Golub & Van Loan "Matrix Computations" (1983) as the cost of "a floating point add, a floating point multiply, and a little subscripting") because of the complicating factor of cache. The simple model was so much nicer.
Is this apt to make a big difference (factor of 2 in execution speed) when comparing different Intel-compatible chips in a given price range?
Disk I/O can also be a big deal fo some programs (notably including
compilers). Sometimes using large amounts of memory can help lower disk
accesses to addres that issue.
I realized that disk drives matter for big problems that use virtual memory, but I did not think about the compiler.
And, of course, to pull out that old cliche - but one that is so true -
a good choice of algorithm usually matters more than anything else.
.
- Follow-Ups:
- Re: gfortran, g95, and dual-core
- From: Dr Ivan D. Reid
- Re: gfortran, g95, and dual-core
- From: Richard Maine
- Re: gfortran, g95, and dual-core
- References:
- gfortran, g95, and dual-core
- From: Charles Russell
- Re: gfortran, g95, and dual-core
- From: Richard Maine
- gfortran, g95, and dual-core
- Prev by Date: Re: Windows array allocation problem
- Next by Date: Re: gfortran, g95, and dual-core
- Previous by thread: Re: gfortran, g95, and dual-core
- Next by thread: Re: gfortran, g95, and dual-core
- Index(es):
Relevant Pages
|