Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: cannot allocate vector of size 1.1 Mb when running in parallel for > ~2500-4000 reps #28

Open
LHMarshall opened this issue Aug 20, 2021 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@LHMarshall
Copy link
Member

> whichmodel.sim <- make.simulation(reps = 8000,
+                                   design = equal.cover,
+                                   population.description = minkepop,
+                                   detectability = detect,
+                                   ds.analysis = strat.specific.or.not)
> crash.test <- run.simulation(whichmodel.sim, run.parallel = TRUE)
  |++++++++++++++++++++++                            | 43% ~01h 14m 48s  
 Error: cannot allocate vector of size 1.1 Mb 
11.
unserialize(node$con) 
10.
recvData.SOCKnode(con) 
9.
recvData(con) 
8.
FUN(X[[i]], ...) 
7.
lapply(cl[1:jobs], recvResult) 
6.
staticClusterApply(cl, fun, length(x), argfun) 
5.
clusterApply(cl = cl, x = splitList(X, nchunks), fun = lapply, 
    FUN = fun, ...) 
4.
do.call(c, clusterApply(cl = cl, x = splitList(X, nchunks), fun = lapply, 
    FUN = fun, ...), quote = TRUE) 
3.
PAR_FUN(cl, X[Split[[i]]], FUN, ...) 
2.
pbapply::pblapply(X = as.list(1:simulation@reps), FUN = single.sim.loop, 
    simulation = simulation, save.data = save.data, load.data = load.data, 
    data.path = data.path, cl = myCluster, counter = FALSE) at run.simulation.R#96
1.
run.simulation(whichmodel.sim, run.parallel = TRUE)
@LHMarshall LHMarshall added this to the Release 1.0.0 milestone Sep 3, 2021
@LHMarshall LHMarshall self-assigned this Sep 3, 2021
@LHMarshall
Copy link
Member Author

Sounds like Cal may know some things that can help with this!

@lenthomas
Copy link
Member

Feel free to contact him for comments - his work on parallel computing is on GPUs, but nonetheless he may have some useful insights.

@LHMarshall LHMarshall added the bug Something isn't working label Aug 10, 2022
@LHMarshall
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants