Some very basic questions #250
Replies: 2 comments 2 replies
-
mirai takes a socket (message-passing) approach. It does not fork as this is unsafe in many cases.
You could do
I'm not sure what those options refer to, but mirai does not use any options or environment variables for explicitness and ease of debugging apart from anything else. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your answers. Regarding 2., can I also export functions without having to define them within Regarding 3., there is then no way to control the maximum number of cores used by daemons? |
Beta Was this translation helpful? Give feedback.
-
First, thanks a lot for this package. I didn't use it yet because I still have some unanswered basic questions about its functioning but it looks very promising.
everywhere
suggests the socket approach was chosen but I'm not sure (I'm familiar with local synchronous parallelisation but not yet with local asynchronous parallelisation).everywhere
to simply pass variables, functions etc. already defined within the host environment? Is there a possibility similar toparallel::clusterExport(cluster, vector_of_variables_names_to_be_shared_with_daemons)
? Would something likeeverywhere({list(variable_1, variable_2, function_1, function_2)})
be sufficient?options(mc.cores = xx)
?) to the daemons?Beta Was this translation helpful? Give feedback.
All reactions