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

Remove rabit dependency on public headers. #6005

Merged
merged 2 commits into from
Aug 13, 2020

Conversation

trivialfis
Copy link
Member

Extracted from #6001 to get a clean merge.

@codecov-commenter
Copy link

codecov-commenter commented Aug 11, 2020

Codecov Report

Merging #6005 into master will increase coverage by 0.36%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6005      +/-   ##
==========================================
+ Coverage   78.67%   79.04%   +0.36%     
==========================================
  Files          12       12              
  Lines        3025     3025              
==========================================
+ Hits         2380     2391      +11     
+ Misses        645      634      -11     
Impacted Files Coverage Δ
python-package/xgboost/dask.py 78.95% <0.00%> (+2.20%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd6b7f4...8635bb0. Read the comment docs.

@trivialfis trivialfis requested a review from RAMitchell August 11, 2020 17:26
Comment on lines -262 to -265
// in distributed mode, some partitions may not get any instance for a feature. Therefore
// we should set the size as zero
if (rabit::IsDistributed() && i + 1 >= offset_vec.size()) {
size = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

??? This logic is not necessary any more?

Copy link
Member Author

@trivialfis trivialfis Aug 12, 2020

Choose a reason for hiding this comment

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

There's a test added in https://github.com/dmlc/xgboost/pull/4045/files and I passed it. I remember fixing something similar to this by forcing passing correct number of features from jvm package. It was done with help from @wbo4958 .

@trivialfis trivialfis requested a review from hcho3 August 12, 2020 08:21
@trivialfis trivialfis merged commit 674c409 into dmlc:master Aug 13, 2020
@trivialfis trivialfis deleted the remove-rabit-header branch August 13, 2020 00:26
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