-
-
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
More support for column split in gpu predictor #9562
More support for column split in gpu predictor #9562
Conversation
rongou
commented
Sep 8, 2023
- Added support for predict leaf
- More testing
@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) { |
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.
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
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.
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
?