Skip to content

[c++] fix multithreading pragma in LeafSplits::Init() - #7200

Merged
jameslamb merged 1 commit into
masterfrom
fix/split-parallelism
Mar 15, 2026
Merged

jameslamb merged 1 commit into
masterfrom
fix/split-parallelism

Conversation

@jameslamb

Copy link
Copy Markdown
Member

Throughout the library, operations using OpenMP are guarded with conditions like this:

if (num_data_in_leaf_ >= 1024 && !deterministic_)

The deterministic parameter is used to turn off parallelism (see #3494 and #6731 for more).

This PR fixes one case in LeafSplits::Init() where a condition like that accidentally missed a !, meaning multithreading was (accidentally) off by default.

Notes for Reviewers

This condition is used for quantized training (the git blame points to #5800). Maybe it will help with #6703 !

@jameslamb
jameslamb merged commit 8e7f3dc into master Mar 15, 2026
67 checks passed
@jameslamb
jameslamb deleted the fix/split-parallelism branch March 15, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants