-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[R] Don't cap global number of threads #10028
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,17 @@ | |
#' values of one or more global-scope parameters. Use \code{xgb.get.config} to fetch the current | ||
#' values of all global-scope parameters (listed in | ||
#' \url{https://xgboost.readthedocs.io/en/stable/parameter.html}). | ||
#' @details | ||
#' Note that some functions might use a globally-configured number of threads, which is not | ||
#' managed by this configuration. Typically, XGBoost methods accept an `nthreads` parameter | ||
#' controlling the number of parallel threads that will be used, but some functionalities | ||
#' might execute functions before this parameter can be supplied. | ||
#' | ||
#' In such cases, the global number of threads is taken from the configured number of OpenMP | ||
#' (OMP) threads, which if not set, will default to the maximum number of available threads. | ||
#' The number of OMP threads in turn can be configured through an environment variable | ||
#' `OMP_NUM_THREADS` (which needs to be set before R is started), or alternatively, can be | ||
#' changed in an R session through package `RhpcBLASctl`, by calling function `RhpcBLASctl::omp_set_num_threads`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think a simple note that in addition to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Simplified. |
||
#' @rdname xgbConfig | ||
#' @title Set and get global configuration | ||
#' @name xgb.set.config, xgb.get.config | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only feature that has problems with local
nthread
is the model serialization, let's be more specific here to reduce confusion.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.