This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch libfortran/28452] random intrinsics for large reals
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- Cc: jvdelisle at verizon dot net, fortran at gcc dot gnu dot org, Thomas dot Koenig at online dot de
- Date: Sun, 30 Jul 2006 21:21:11 -0700
- Subject: Re: [Patch libfortran/28452] random intrinsics for large reals
- References: <20060731040651.07CBB70006@bromo.msbb.uc.edu>
On Mon, Jul 31, 2006 at 12:06:51AM -0400, Jack Howarth wrote:
> Steve,
> When I tried to change ep to ep=kind(1.e0_16) in the equidistrib source,
> the resulting code crashes as follows...
>
> equidistrib(18433) malloc: *** vm_allocate(size=1600000000) failed (error code=3)
> equidistrib(18433) malloc: *** error: can't allocate region
> equidistrib(18433) malloc: *** set a breakpoint in szone_error to debug
> Fortran runtime error: ALLOCATE: Out of memory.
>
> Do you think this is a bug in the equidistrib code or in the current random
> patch? The random_3.f90 testcase runs fine with the last patch (plus the
> minor correction).
You probably need to reduce n from 100000000 to some sane
value. The program as written will grab 2.6 GB of memory.
--
Steve