Closed samuelsaari closed 1 year ago
Have you tried running futuremice()
with n.core = cl
?
That could be in the right direction but get the following error with n.core = cl
Error in check.cores(n.core, available, m) :
'list' object cannot be coerced to type 'integer'
Calls: <Anonymous> -> check.cores
Execution halted
srun: error: r07c01: task 0: Exited with exit code 1
srun: launch/slurm: _step_signal: Terminating StepId=16578568.0
slurmstepd: error: *** STEP 16578568.0 ON r07c01 CANCELLED AT 2023-05-12T12:38:29 ***
srun: error: r07c01: tasks 1-4: Terminated
srun: Force Terminated StepId=16578568.0
'/users/makimiik/flh/x_errors_16578568.R' -> './x_errors_16578568.R'
I see. Then there is currently no way within futuremice()
to set up a cluster environment. We might develop this in the future (no pun intended). For now, the easiest way to go about this is to fall back to furrr::future_map()
, execute your mice()
call within this function, and stitch the list of imputations in the future_map
output together using ibind()
(which is also what is done in futuremice()
, so you can check out the futuremice()
code to see what happens.
Thanks. I assume this answers the question, so I'm closing.
I am trying to parallize mice with futuremice with MPI.
Similar settings work for me with future_map and parallellized foreach but here it does not.
Here is a MWE that works with multisession but not with cluster parallelization:
And the batch job script: