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

README: plan("cluster", workers = ...) => plan(multisession) [suggestion] #21

Open
HenrikBengtsson opened this issue Nov 22, 2021 · 0 comments

Comments

@HenrikBengtsson
Copy link

Hi, in the README, there's the following example:

library(RhpcBLASctl)
# Detect the number of physical cores on this computer using RhpcBLASctl.
cl = parallel::makeCluster(get_num_cores())
plan("cluster", workers = cl)
…

That can be replaced with:

plan(multisession)

or if you prefer get_num_cores() instead of the default parallelly::availableCores(), then:

plan(multisession, workers = RhpcBLASctl::get_num_cores())

will the equivalent to the above.

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