-
Notifications
You must be signed in to change notification settings - Fork 4k
[CUDA] Multi-GPU for CUDA Version #6138
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Nikita Titov <[email protected]>
Co-authored-by: Nikita Titov <[email protected]>
Co-authored-by: Nikita Titov <[email protected]>
Co-authored-by: Nikita Titov <[email protected]>
|
@microsoft-github-policy-service agree |
|
@StrikerRUS Could you help to review this again when you have time? Thanks. |
|
@StrikerRUS Gentlely ping again. |
StrikerRUS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shiyu1994 Thanks a lot for pushing this PR forward!
I found only one left over after resolving merge conflict with #6086.
Also, I believe we should document somewhere that this PR brings not only multi GPU support, but also multi node multi GPU support.
Co-authored-by: Nikita Titov <[email protected]>
…raining of CUDA version
Documented in 8a0d60a. Could you please check when you have time? @StrikerRUS Thanks. |
StrikerRUS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! I don't have any other comments. Just please run .ci/parameter-generator.py to update docs.
|
@shiyu1994 Hi, and thanks for your contribution! I’d like to ask how to use the multi-GPU feature. I built LightGBM by pulling PR #6138 and using CMake Here is my setup: X, y = generate_data(num_samples, num_features)
lgb_train = lgb.Dataset(X, label=y)
# lgbm_cfg read from file, add multi-gpu feature below
lgbm_cfg["num_gpu"] = 2 # 2 × RTX 4090
lgbm_cfg["device_type"] = "cuda"
booster = lgb.train(
lgbm_cfg,
lgb_train
)The error I get is: If I comment out Could you please help me understand:
Thank you very much for your time and for this PR! |
This is to integrate multi-GPU support for CUDA version, with NCCL.