From: John Raymond Dore <johnrdore@gmail.com>
Cc: "John Raymond Doré" <johnrdore@googlemail.com>
Subject: Re: heap size exceeded for large matrices
Date: Sun, 29 Aug 2010 08:33:38 -0700 (PDT)
Date: 2010-08-29T08:33:38-07:00 [thread overview]
Message-ID: <a386da61-66c4-4c2b-b4c7-3069f7e63d1d@a36g2000yqc.googlegroups.com> (raw)
In-Reply-To: m28w3pg0p1.fsf@pushface.org
On Aug 29, 11:42 am, Simon Wright <si...@pushface.org> wrote:
> "Yannick Duchêne (Hibou57)" <yannick_duch...@yahoo.fr> writes:
>
> > Le Sun, 29 Aug 2010 10:50:39 +0200, John Raymond Dore
> > <johnrd...@gmail.com> a écrit:
> >> I have no difficulty in increasing the storage size of a task.
> >> I cannot do the same for matrices within a procedure
> > Forgive my question is this ever happens to looks stupid: is your
> > matrix allocated as a local object of that procedure ?
> > If so, the stack may have a maximum limit which cannot be exceeded,
> > and dynamic allocation may solve the case.
> > If not, an excerpt from the source could help to see.
>
> > Do you use Ada.Numerics.Generic_Real_Arrays.Real_Matrix ? (that is
> > what I supposed, may need to be confirmed).
>
I just need a large matrix (1..10000, 1..10000) of long_float would
suffice accessible from a procedure.
It does not have to be declared within a procedure.
My computer is running 64bit Ubuntu
> The implementation of the Ada.Numerics.Generic*Arrays in GNAT (and inhttps://sourceforge.net/projects/gnat-math-extn/) allocates temporary
> arrays on the stack, which will be of similar sizes to the original.
>
> Can you call the matrix operations from a task with a large stack?
>
> I'm not sure that generalized algorithms are going to meet your needs
> (you're going to be perilously close to your 8GB of real memory, when
> you consider temporary space, which is going to risk much swapping; and
> won't you need a 64-bit OS?) Are there any sparse matrix algorithms?
next prev parent reply other threads:[~2010-08-29 15:33 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-29 8:50 heap size exceeded for large matrices John Raymond Dore
2010-08-29 9:51 ` Yannick Duchêne (Hibou57)
2010-08-29 10:42 ` Simon Wright
2010-08-29 15:33 ` John Raymond Dore [this message]
2010-08-29 10:27 ` Pascal Obry
2010-08-29 15:14 ` Brian Drummond
2010-08-29 16:16 ` John Raymond Dore
2010-08-29 22:06 ` Peter C. Chapin
2010-08-29 22:47 ` Brian Drummond
2010-08-30 9:45 ` Brian Drummond
2010-08-30 11:04 ` Cyrille
2010-08-30 13:01 ` System.Pool_Local.Unbounded_Reclaim_Pool (Was: heap size exceeded for large matrices) Jacob Sparre Andersen
2010-08-30 13:38 ` Dmitry A. Kazakov
2010-08-30 14:08 ` Robert A Duff
2010-08-30 14:14 ` J-P. Rosen
2010-08-30 7:44 ` heap size exceeded for large matrices Natasha Kerensikova
2010-08-30 9:41 ` Brian Drummond
2010-08-30 9:55 ` Natasha Kerensikova
2010-08-30 9:55 ` Dmitry A. Kazakov
2010-08-30 10:21 ` Georg Bauhaus
2010-08-30 18:56 ` Jeffrey Carter
2010-08-30 16:55 ` Simon Wright
2010-08-30 17:00 ` Robert A Duff
2010-08-30 19:51 ` Simon Wright
2010-08-30 16:58 ` Simon Wright
2010-08-31 17:56 ` Natasha Kerensikova
2010-08-29 17:57 ` Pascal Obry
2010-08-29 15:35 ` John Raymond Dore
2010-08-29 17:57 ` Pascal Obry
2010-08-29 19:19 ` Ludovic Brenta
2010-08-29 20:33 ` Pascal Obry
2010-08-29 21:17 ` Robert A Duff
2010-08-29 21:29 ` Ludovic Brenta
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox