Skip to content

Commit

Permalink
#178 parallelly::availableCores()
Browse files Browse the repository at this point in the history
  • Loading branch information
mdancho84 committed May 31, 2022
1 parent c0e4ceb commit 413aa60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Depends:
R (>= 3.5.0)
Imports:
StanHeaders,
timetk (>= 2.8.0.9000),
timetk (>= 2.8.1),
parsnip (>= 0.2.1),
dials,
yardstick (>= 0.0.8),
Expand All @@ -42,6 +42,7 @@ Imports:
scales,
janitor,
parallel,
parallelly,
doParallel,
foreach,
magrittr,
Expand Down
2 changes: 1 addition & 1 deletion R/utils-control-par.R
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ control_modeltime_objects <- function(
if (!allow_par) {
cores <- 1
} else {
cores_available <- parallel::detectCores(logical = FALSE) # Detect Physical Cores
cores_available <- parallelly::availableCores(logical = FALSE) # Detect Physical Cores

foreach_workers <- foreach::getDoParWorkers() # Detect how many workers currently set up

Expand Down

0 comments on commit 413aa60

Please sign in to comment.