Re: gfortran, g95, and dual-core
- From: Tim Prince <timothyprince@xxxxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 14:21:25 GMT
Charles Russell wrote:
FX wrote:Typically, a makefile for a large program contains large sections which
I don't understand how the makefile matters, but I'm using fortran 77Can gfortran or g95 gain anything from dual- or multi-core processors
in either speed of compilation or speed of execution?
Speed of compilation: if you compile single source files, there probably
isn't anything to gain. If your code has multiple source files, it will
depend on your compilation process, but if you use a decently written
makefile, you will gain.
and avoid the complications introduced by modules.
can build in parallel with each other. However, if you make a single
modification and rebuild, a large section with no internal build
parallelism gets rebuilt. For example,(with f77 code) if the makefile
runs fsplit on a single source file, causes each subroutine to be
rebuilt separately, then combines individual objects into a single large
object, make doesn't automatically see the possibility of building the
individual objects in parallel.
Do you think the current dual- and quad-core processors areThere is little question about the massively parallel GPUs going into
just the first steps in a sequence, and that mass-market computers will
soon become massively parallel?
production. The question is how long it will take to get adequate
Fortran support.
1) Will this conflict with any of the debugging options?
The other way is to not touch your code at all, and ask your compile rfor
autoparallelization. Gains from this will usually be relatively small,
but you have little to lose. This also requires support from the
compiler, which is not present in g95, and will be present in gfortran
only starting with the next release series (4.3.x). For more information
about autoparallelization, others might know more than what I said above.
2) Will this work with fortran 77 code?
I assume it will be a direct extension of OpenMP and will raise few new
issues. Some of the debugging options involve removing the parallel
compiler switch and re-checking the serial version. When auto-parallel
shows me an opportunity for parallelism, I want to solidify it as
OpenMP, and f77 makes that easier (provided that you have already
optimized the nested loops).
.
- Follow-Ups:
- Re: gfortran, g95, and dual-core
- From: glen herrmannsfeldt
- Re: gfortran, g95, and dual-core
- From: Charles Russell
- Re: gfortran, g95, and dual-core
- References:
- gfortran, g95, and dual-core
- From: Charles Russell
- Re: gfortran, g95, and dual-core
- From: FX
- Re: gfortran, g95, and dual-core
- From: Charles Russell
- gfortran, g95, and dual-core
- Prev by Date: Re: gfortran, g95, and dual-core
- 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
|