Skip to content
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

Unify the hist tree method for different devices. #9363

Merged
merged 9 commits into from
Jul 11, 2023

Conversation

trivialfis
Copy link
Member

@trivialfis trivialfis commented Jul 6, 2023

  • Dispatch the tree method based on the current context.
  • Deprecate the use of gpu_hist.

Comment on lines +14 to +22
auto msg =
"The tree method `gpu_hist` is deprecated since 2.0.0. To use GPU training, set the `device` "
R"(parameter to CUDA instead.

E.g. tree_method = "hist", device = "CUDA"

)";
LOG(WARNING) << msg;
logged = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the device parameter exist already? Then why do the C++ tests use gpu_id ?

Copy link
Member Author

@trivialfis trivialfis Jul 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet, it's in this PR: #9362 . It's difficult to split up the changes without referencing each other.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Let me approve this PR for now.

@trivialfis trivialfis merged commit 97ed944 into dmlc:master Jul 11, 2023
24 checks passed
@trivialfis trivialfis deleted the unify-tree-method branch July 11, 2023 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants