Error: C stack usage 7969688 is too close to the limit
> Cstack_info()
size current direction eval_depth
7969177 4136 1 2
--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users+unsubscribe@googlegroups.com.
To post to this group, send email to nimble...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/c36d217e-a7f9-4228-a489-56420a595101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To post to this group, send email to nimble...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/5783da01-38c7-40c3-bc59-b0fe1cf275c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi ChrisTo benignly increase the stack limit, you can do the following:Before running R, in a terminal, run the three commandsulimit -sulimit -s 16394ulimit -sto query the current stack limit, then set it and then check it took.Assuming the stack limit is now larger, run R from within that console and run the nimble code.HOWEVER, it is very curious that the stack – rather than the heap – is growing so large.That typically occurs when there is a recursive function OR large data objects are being allocated on the stack.Perry et al., is the generated C++ code creating large objects or very, very many objects on the stack?D.
On Thu, Oct 12, 2017 at 1:32 PM Chris Carleton <w.cca...@gmail.com> wrote:
Thanks Perry and David!I tried Perry's solution to no avail. I'll see about David's solution—not sure whether there are any nodes I can collapse in that way (see attached), but I'll give it a go. Otherwise, I'm happy to try and increase the memory limit if I can figure out how to do it safely without affecting my whole system (just in case some other program is misbehaving and I don't know it). If that doesn't work, I might be at an impasse.Thanks again for all the help!Chris--
On Wednesday, October 11, 2017 at 10:26:06 PM UTC-7, David Pleydell wrote:One strategy that can help reduce setup / compilation time is to reduce the number of nodes by writing functions that permit more complex node definitions. For example, for a state space model, instead of having one node for every numeric value, just use one node for the entire X vector and one node for the entire Y vector. This can dramatically reduce CPU time for setting up the model, but how much memory it can save I can't say.
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users+unsubscribe@googlegroups.com.
To post to this group, send email to nimble...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/5783da01-38c7-40c3-bc59-b0fe1cf275c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Duncan Temple Lang
Director, Data Science Initiative
Professor of Statistics
--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users+unsubscribe@googlegroups.com.
To post to this group, send email to nimble...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/CABQ6xNbF_BH5Ge9tswoVKZ3hznx4x46FoyempUVap4sY50j1VA%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To post to this group, send email to nimble...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/5783da01-38c7-40c3-bc59-b0fe1cf275c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Duncan Temple Lang
Director, Data Science Initiative
Professor of Statistics
--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To post to this group, send email to nimble...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users+unsubscribe@googlegroups.com.
To post to this group, send email to nimble...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/cf8dd4e8-7d26-46e4-89a0-10662f7ef158%40googlegroups.com.