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

[c++] remove unnecessary include in CLI #6342

Merged
merged 2 commits into from
Feb 29, 2024
Merged

[c++] remove unnecessary include in CLI #6342

merged 2 commits into from
Feb 29, 2024

Conversation

jameslamb
Copy link
Collaborator

The CLI's main implementation file, src/main.cpp, only needs LightGBM::Linkers methods when compiled for use with MPI (-DUSE_MPI).

This proposes guarding the relevant includes with #ifdef USE_MPI, to make compilation a little faster for non-MPI use cases.

@jameslamb jameslamb merged commit a26302f into master Feb 29, 2024
43 checks passed
@jameslamb jameslamb deleted the fix/includes branch February 29, 2024 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants