Open HenrikBengtsson opened 2 years ago
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:
get_num_cores()
parallelly::availableCores()
plan(multisession, workers = RhpcBLASctl::get_num_cores())
will the equivalent to the above.
Hi, in the README, there's the following example:
That can be replaced with:
or if you prefer
get_num_cores()
instead of the defaultparallelly::availableCores()
, then:will the equivalent to the above.