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

More support for column split in gpu predictor #9562

Merged
merged 13 commits into from
Sep 14, 2023

Conversation

rongou
Copy link
Contributor

@rongou rongou commented Sep 8, 2023

  • Added support for predict leaf
  • More testing

@rongou
Copy link
Contributor Author

rongou commented Sep 12, 2023

@trivialfis I think this is finally working now. Please take a look. Thanks!

d_out_predictions[out_prediction_idx] += GetLeafWeightByBitVector(
row_idx, d_tree, decision_bits, missing_bits, num_nodes, tree_offset);
tree_offset += d_tree.d_tree.size();
if (num_group == 1) {
Copy link
Member

Choose a reason for hiding this comment

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

Is it necessary to distinguish whether n_groups is 1? I think the indexing should be similar if not the same right?

num_row * 1 + 0 # only one group

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is based on the original PredictKernel (line 299). I guess it's just a performance optimization to reduce global memory access to d_out_predictions?

@trivialfis trivialfis merged commit d8c3cc9 into dmlc:master Sep 14, 2023
27 checks passed
@rongou rongou deleted the more-colsplit-gpu-predict-tests branch September 25, 2023 16:40
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