comp.lang.ada
 help / color / mirror / Atom feed
From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Larger matrices
Date: Thu, 07 Aug 2008 14:35:38 +0200
Date: 2008-08-07T14:35:38+02:00	[thread overview]
Message-ID: <6g08gqFdle1aU1@mid.individual.net> (raw)
In-Reply-To: 40ed91c2-3dab-4994-9a7b-4032058f0671@56g2000hsm.googlegroups.com

amado.alves@gmail.com wrote:

> I manage to process 1000 x 1000 matrices with the respective Ada 2005
> standard library with GNAT GPL 2008. Processing includes
> multiplication by a vector.
> 
> Now I want larger matrices, say 5000 x 5000. The objects seem to be
> allocated ok (dynamically), but mutiplication gives a "segmentation
> fault."
> 
> Any tips on how to overcome this?

I will give you all the tips I remember on how to get larger stacks (in linux),
but I'm going from memory so you'll have to double-check:

ulimit -s unlimited at the shell level.

Wrap your program, if not already, in a task to be able to use pragma
Storage_Size for this task. I see in other posts that there are switches in
order to set the stack size of the environment task; make your choice.

The linker settings are the fuzziest part. This old thread can put you in the
good track:

http://groups.google.com/group/comp.lang.ada/browse_thread/thread/73c865853bdc4937

In particular the first reply mentions arguments to the linker that ring a bell
to me, although I'm sure to have seen at least an alternate suggestion for a
set of linker options dealing with the stack.



  parent reply	other threads:[~2008-08-07 12:35 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06 13:32 Larger matrices amado.alves
2008-08-06 14:29 ` Georg Bauhaus
2008-08-06 15:01   ` amado.alves
2008-08-06 17:29     ` amado.alves
2008-08-06 17:58       ` Dmitry A. Kazakov
2008-08-06 18:40         ` amado.alves
2008-08-07  7:44           ` Dmitry A. Kazakov
2008-08-06 18:44       ` Jeffrey R. Carter
2008-08-06 19:12         ` amado.alves
2008-08-06 23:33           ` amado.alves
2008-08-07  3:02             ` Randy Brukardt
2008-08-07  6:30             ` Georg Bauhaus
2008-08-07  8:01               ` amado.alves
2008-08-07  8:55                 ` Egil Høvik
2008-08-07 19:13                 ` Jeffrey R. Carter
2008-08-08  9:59                   ` amado.alves
2008-08-08 10:38                     ` Dmitry A. Kazakov
2008-08-08 11:29                     ` Jean-Pierre Rosen
2008-08-08 13:15                       ` Jeffrey Creem
2008-08-08 13:32                         ` Dmitry A. Kazakov
2008-08-08 11:35                     ` Georg Bauhaus
2008-08-08 12:11                       ` Dmitry A. Kazakov
2008-08-08 14:11                         ` Georg Bauhaus
2008-08-08 14:36                           ` Dmitry A. Kazakov
2008-08-08 15:40                             ` Georg Bauhaus
2008-08-08 16:37                               ` Dmitry A. Kazakov
2008-08-08 17:37                                 ` Georg Bauhaus
2008-08-08 17:42                                   ` Georg Bauhaus
2008-08-08 19:51                                   ` Dmitry A. Kazakov
2008-08-09  7:44                                     ` Georg Bauhaus
2008-08-09 10:33                                       ` Dmitry A. Kazakov
2008-08-11 11:51                                         ` amado.alves
2008-08-11 13:51                                           ` Peter C. Chapin
2008-08-11 15:37                                             ` amado.alves
2008-08-13 14:03                                           ` John B. Matthews
2008-08-07 11:28             ` johnscpg
2008-08-07 12:35 ` Alex R. Mosteo [this message]
2008-08-07 13:40   ` amado.alves
2008-08-07 15:12     ` Alex R. Mosteo
2008-08-07 16:25       ` amado.alves
2008-08-07 18:21         ` amado.alves
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox