[Patch libfortran/28452] random intrinsics for large reals
Steve Kargl
sgk@troutmask.apl.washington.edu
Mon Jul 31 06:02:00 GMT 2006
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
More information about the Fortran
mailing list