Skip to content

Use one source of truth for NCCL environment variables #152

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

Merged
merged 4 commits into from
Jun 12, 2025

Conversation

msimberg
Copy link
Contributor

@msimberg msimberg commented Jun 11, 2025

Based on #146 (comment). This adds NCCL environment variables to a separate file and includes it in both the NCCL and pytorch sections.

@boeschf @RMeli could you let me know what you think of this? The bash comments are definitely uglier, but perhaps not too bad. They show up in both sections. I've removed the explicit MPICH_GPU_SUPPORT_ENABLED=0 from the NCCL side, but it's still mentioned in a warning (as before). The pytorch side still has MPICH_GPU_SUPPORT_ENABLED=0 explicitly.

@msimberg msimberg requested review from boeschf and RMeli and removed request for RMeli and boeschf June 11, 2025 15:50
Copy link

preview available: https://docs.tds.cscs.ch/152

Copy link
Member

@RMeli RMeli left a comment

Choose a reason for hiding this comment

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

I think the uglier bash comments are worth in this case.

Copy link

preview available: https://docs.tds.cscs.ch/152

@msimberg msimberg force-pushed the sync-nccl-pytorch-env-vars branch from e3dd98c to 610f010 Compare June 12, 2025 07:02
@msimberg msimberg requested a review from RMeli June 12, 2025 07:03
Copy link

preview available: https://docs.tds.cscs.ch/152

export FI_CXI_DEFAULT_TX_SIZE=32768
export FI_CXI_RX_MATCH_MODE=software
# (8)!
--8<-- "docs/software/communication/nccl_env_vars"
Copy link
Member

Choose a reason for hiding this comment

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

This is great!

Copy link

preview available: https://docs.tds.cscs.ch/152

@bcumming bcumming merged commit 8871039 into eth-cscs:main Jun 12, 2025
1 check passed
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