Limiting compile time memory usage?

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Dec 24 07:46:00 GMT 2006


On Sun, Dec 24, 2006 at 01:44:57AM +0100, Harald Anlauf wrote:
> Steve,
> 
> > Harald, the same developer suggested a bug report about excessive
> > memory usage may be in order.  Can you submit a code example that
> > shows the problem?
> 
> I have selected the worst example and stripped it down, see
> PR 30285.  The example consists of a minimal main program and
> 3 "use"d .mod files that are quite large individually (~3 MB),
> because they carry a lot of baggage.  (Many symbols seem to
> be due to the use of MPI or due to the "use" of other modules.)
> 
> I have provided the output for the compilation with -fmem-report
> and -ftime-report with inclusion of 2 of the 3 modules.
> Uncommenting the indicated "use" of the 3rd module lets gfortran
> step over the 500 MB line.
> 
> Could you please check if the information provided in the
> PR is clear enough and sufficient?
> 

I think the info is sufficient to get us started.  I'll note
that I use MPICH2 in some of my codes, but I have 16 GB of 
memory on the master node.  I'll play with your code later 
tonight or tomorrow.

PS: Yes, modules could use a rewrite, and pault has suggested 
    that he'll look into this.

-- 
Steve



More information about the Fortran mailing list