Skip to content

Commit

Permalink
Use cpp_get_max_thread()
Browse files Browse the repository at this point in the history
  • Loading branch information
koheiw committed Apr 21, 2023
1 parent 3d57717 commit aef22b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/quanteda_options.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ set_option_value <- function(key, value) {
get_threads <- function() {
c("tbb" = as.integer(Sys.getenv("RCPP_PARALLEL_NUM_THREADS")),
"omp" = as.integer(Sys.getenv("OMP_THREAD_LIMIT")),
"max" = RcppParallel::defaultNumThreads())
"max" = cpp_get_max_thread())
}

# returns default options
Expand Down

0 comments on commit aef22b2

Please sign in to comment.