-
Is it possible to set target specific resources for the targets generated by tar_stan_mcmc? I'm using future.batchtools on an sge cluster and I'd like to run the mcmc targets as jobs with four cores, but the data, draws, model file targets either as a job with one core or even better set these to deployment = "main". I've also tried running these as one job with future.callr and tar_make_future(workers = {number_of_cores}). However, I'm a little confused as to how the mcmc parallelization will work then (i.e. using the parallel_chains argument in tar_stan_mcmc). Does stantargets know that the mcmc targets need n cores for the parallel chains, or will those chains end up running sequentially? If targets finish and there are available cores, will the mcmc targets start running chains that have not started yet or will it start other targets? Apologies if I'm missing some targets specific knowledge here, very new to the targetopia:) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
This is not currently possible in
In that local case, worker is a new R process, and then the MCMC submits |
Beta Was this translation helpful? Give feedback.
-
Marking Will's response below as the answer, as it gets you closest to the goal of target specific resources/conserving compute time on a cluster:
|
Beta Was this translation helpful? Give feedback.
Marking Will's response below as the answer, as it gets you closest to the goal of target specific resources/conserving compute time on a cluster: