This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch libfortran/28452] random intrinsics for large reals


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]