Skip to content

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

Description

@HenrikBengtsson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions