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

Try drake + future.batchtools #1

Open
wlandau-lilly opened this issue Oct 24, 2017 · 1 comment
Open

Try drake + future.batchtools #1

wlandau-lilly opened this issue Oct 24, 2017 · 1 comment

Comments

@wlandau-lilly
Copy link

From ropensci/drake#42:

library(future)
library(future.batchtools)
library(drake)

backend(batchtools_slurm) # same as future::plan()

# Alternatively, plan to send targets to SLURM and then give each target multiple cores.
# This should work if you use `future_lapply()` somewhere within a target's command.
# backend(list(batchtools_slurm, multicore))

# Cap the max jobs with options(mc.cores = 2) or something similar from ?future.options
load_basic_example()
make(my_plan, parallelism = "future_lapply")
@wlandau-lilly
Copy link
Author

Edit: I am having more trouble than I previously anticipated. Batchtools backends require configuration template files.

backend(batchtools_slurm(template = "batchtools.slurm.tmpl"))

I need to access SLURM and learn batchtools in earnest before I can make this functionality useful. In the meantime, the specially-configured Makefile parallelism in ropensci/drake#115 may help. There is more configurability now than just a shell.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant