Open wlandau-lilly opened 6 years ago
@wlandau This seems like the simple solution: https://github.com/HenrikBengtsson/future.apply/issues/30
recall that R lists store pointers when there are repeated objects so memory isn't an issue here. And the return value of plan
is the previous plan except if it's the first plan. So you'd need to do something like this:
plan(sequential); local <- plan(sequential)
plan(multicore); distributed <- plan(multicore)
Migrated from HenrikBengtsson/future#181, would support wlandau-lilly/drake#169. I would like to have multiple heterogeneous
plans()
's and distribute different tasks to differentplan()
s.I tried with ordinary futures outside of
future_lapply()
, but the distributed parallelism on SGE did not work.