Bill Allombert on Sat, 24 Feb 2018 20:05:31 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: spamming with "Warning: not enough memory, new stack ..."


On Sat, Feb 24, 2018 at 07:41:53PM +0100, Bill Allombert wrote:
> On Sat, Feb 24, 2018 at 12:03:15PM -0500, Max Alekseyev wrote:
> > Dear Bill,
> > Thank you for clarification! Indeed, I used the pthread version.
> > Can this warning message be made a bit more specific to indicate that
> > it's related to threads? (It was very puzzling for me.)
> 
> Hello Max,
> 
> It is not related to threads. It just occurs in a thread in your case.
> It also happen when GP starts if parisizemax is set too high.
> 
> Now we could try to prefix warnings with something to indicate they
> occurs in a thread. Prefixing errors would be harder because than can be
> caught.

This could look like:

? parfor(i=1,10,if(i==1,warning("i=",i)))
  ***   in thread: user warning: i=1

a better idea ?

Cheers,
Bill.