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

Enable building rabit on Windows #6105

Merged
merged 6 commits into from
Sep 11, 2020
Merged

Conversation

trivialfis
Copy link
Member

No test is performed. Just trying to get rid of the rabit_empty target.

@hcho3
Copy link
Collaborator

hcho3 commented Sep 9, 2020

Let’s remove the Rabit Makefile, since XGBoost doesn’t use Makefile.

@trivialfis
Copy link
Member Author

@hcho3 We have R package ..

@hcho3
Copy link
Collaborator

hcho3 commented Sep 9, 2020

Ah so Rabit is not part of the amalgamation and it needs a Makefile. Got it.

@trivialfis trivialfis mentioned this pull request Sep 9, 2020
7 tasks
@trivialfis
Copy link
Member Author

It seems autotools is picking mingw over msvc.

@trivialfis
Copy link
Member Author

Turns out I can remove the makefile.

Copy link
Member

@RAMitchell RAMitchell left a comment

Choose a reason for hiding this comment

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

Let me see if I understand. This PR is removing the dummy library that used to be linked into the windows Xgboost. Macros are being used instead for features that don't work on windows. Does rabit actually work in any way on windows or is it still disabled?

#endif // defined(_WIN32)

#define IS_MINGW() defined(__MINGW32__)
Copy link
Member

Choose a reason for hiding this comment

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

Ifdef'ing everything seems quite a messy solution. Any alternatives?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't have any other options.

Copy link
Member

Choose a reason for hiding this comment

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

I can think of anything better, as you said at least it's constrained to one file.

@trivialfis trivialfis merged commit c92d751 into dmlc:master Sep 11, 2020
@trivialfis trivialfis deleted the rabit-windows branch September 11, 2020 03:54
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.

3 participants