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

Support column split in GPU predictor #9343

Merged
merged 12 commits into from
Jul 2, 2023

Conversation

rongou
Copy link
Contributor

@rongou rongou commented Jun 27, 2023

The approach is similar to the CPU predictor: first collect all the decisions at each node and whether the feature is missing locally, then do an allreduce on the bit vectors, and finally use the bit vectors to find the leaf.

Still need to do more testing in a followup.

@rongou
Copy link
Contributor Author

rongou commented Jun 27, 2023

@trivialfis

src/predictor/cpu_predictor.cc Show resolved Hide resolved
tests/cpp/predictor/test_gpu_predictor.cu Outdated Show resolved Hide resolved
tests/cpp/predictor/test_gpu_predictor.cu Outdated Show resolved Hide resolved
tests/cpp/predictor/test_gpu_predictor.cu Outdated Show resolved Hide resolved
tests/cpp/predictor/test_gpu_predictor.cu Outdated Show resolved Hide resolved
tests/cpp/predictor/test_gpu_predictor.cu Show resolved Hide resolved
src/predictor/gpu_predictor.cu Outdated Show resolved Hide resolved
src/predictor/predict_fn.h Outdated Show resolved Hide resolved
src/predictor/gpu_predictor.cu Outdated Show resolved Hide resolved
src/predictor/gpu_predictor.cu Outdated Show resolved Hide resolved
if (old_decision_size < size) {
decision_storage->resize(size);
}
if (old_decision_size != 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Why do you use old_decision_size instead of size?

Copy link
Member

Choose a reason for hiding this comment

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

Could you please share some insight on this?

Copy link
Member

Choose a reason for hiding this comment

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

@rongou
Copy link
Contributor Author

rongou commented Jul 1, 2023

@trivialfis Can this be merged? Thanks!

@trivialfis trivialfis merged commit 3a0f787 into dmlc:master Jul 2, 2023
20 checks passed
@rongou rongou deleted the colsplit-gpu-predictor branch September 25, 2023 16:40
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.

2 participants