Skip to content

[c++] fix parallel_tree_learner_split_info - #6738

Merged
jameslamb merged 3 commits into
lightgbm-org:masterfrom
moming39:patch-1
Dec 11, 2024
Merged

jameslamb merged 3 commits into
lightgbm-org:masterfrom
moming39:patch-1

Conversation

@moming39

@moming39 moming39 commented Dec 7, 2024

Copy link
Copy Markdown
Contributor

#6491 (comment)
This code is used for computing the buffer size of the communicating the split info the in distributed training. But lost the two most recently added parameters(right_sum_gradient_and_hessian, left_sum_gradient_and_hessian) size. When use parallel_tree_learner method with number of categories of one feature larger than 28 (default max_cat_to_onehot(32)-2*2), it will resut in an Segmentation fault.

lightgbm-org#6491 (comment)
This code is used for computing the buffer size of the communicating the split info the in distributed training. But lost the two most recently added parameters(right_sum_gradient_and_hessian, left_sum_gradient_and_hessian) size.
When use parallel_tree_learner method with number of categories of one feature larger than 28 (default max_cat_to_onehot(32)-2*2), it will resut in an Segmentation fault.
@jameslamb jameslamb changed the title fix_ parallel_tree_learner_split_info [c++] fix parallel_tree_learner_split_info Dec 7, 2024
@jameslamb

Copy link
Copy Markdown
Member

@shiyu1994 can you please review this? I'm not confident I understand the changes, and not sure if a similar fix is needed in other places.

@shiyu1994 shiyu1994 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for finding out this issue.

@MelleVessies

Copy link
Copy Markdown

Thanks for the quick merge! Everything seems to be working as intended.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants