Re: gfortran, g95, and dual-core



Tim Prince wrote:
Charles Russell wrote:
Can gfortran or g95 gain anything from dual- or multi-core processors in
either speed of compilation or speed of execution? Does anything
besides clock speeed matter much?
gfortran, since 4.2, supports OpenMP parallel compilation (but
apparently not for mingw). make -j can give a big jump in build
performance, worth doing even if you are a Windows fanatic.

The gnu make info file in my Cygwin distribution says that option -j is ineffective with MS-DOS. Does it do anything under Cygwin? What factor is a "big jump?"

Not sure what you have in mind when you say "anything."

I should have been more specific. First of all, I'm a scientific user, not a programmer, so that most of your response is beyond my understanding. Since the first IBM PC, I've been accustomed to an order-of-magnitude speed gain every time I replaced a computer, normally about every 4 years, alternating between a minimal laptop and an upper midrange desktop, so that one or the other was always less than 2 years old. Two years ago was the laptop's turn, and I got the expected order-of-magnitude gain. Now it is the desktop's turn, but my 4.5-year-old desktop has a clock speed of 2.4 GHz, and even the top range Intel chips are hardly any faster now. Instead, they have gone to dual-core. Perhaps the market is all in laptops, so that high-speed high-power chips are out of fashion.

What matters to me is not only execution speed, though that is important, but also compilation speed, since my "user interface" is to edit the source code. With annually increasing clock speeds, I was getting both. The heavy lifting in my code is done with netlib routines, so I simply want old code to run faster. The gain must be more than a factor of 2 or 3 to matter much. I had come to expect that much gain every couple of years.

Can I gain anything by replacing my old PC? If so, what are the critical specifications when buying a mid-price-range PC for crunching numbers with fortran?

My original question was more general because I was also curious how serious fortran programmers expect to deal with the changing trend in chip development, but the answers are Greek to me.


Recent linux
distros do an improved job of default scheduling on multi-core, often
relieving you from fiddling with taskset and the like.
> Windows fanatics
rely on low level affinity calls, not what I like to do with Fortran.
Quad cores with the lowest available buss speeds saturate quickly on
memory operations with parallel programming. The buss clock speed is
more important then than the CPU clock speed.
.



Relevant Pages

  • Re: one way light speed
    ... You can use one clock to measure the two-way speed of light ... You still need to decide on how to synchronise your clocks. ... is accepted by all that the two-way speed of light is c in all directions. ... Thus comparing the speeds. ...
    (sci.physics.relativity)
  • Re: Crank taxonomy
    ... relativity against my simple challenge to it. ... relativity seem to believe that physical clock ... "If two odometers on cars traveling between ... at different speeds. ...
    (sci.physics.relativity)
  • Re: "This is a stupid hypothetical" is not an answer!
    ... books on relativity, but even all the books written for the layman ... Lets say that thing you were looking at was a pendulum clock. ... You can also think of it as waves. ... and relative speeds.. ...
    (sci.physics)
  • Re: Double Observation
    ... She positioned Tom on the flat car so that he was facing ... > Sally placed a clock in front of Tom that moved with Tom at all times. ... > and right at high speeds. ... in still air carrying a 32 ft long ladder between them, Joe leading the ...
    (sci.physics.relativity)
  • Re: MMX Expected Shft.
    ... > Dennis wrote: ... >> Tom Roberts wrote: ... >> That means according to Michelson and his stationary clock and rulers, ... >> the rays of light moved at different speeds. ...
    (sci.physics.relativity)