Skip to content

Add a specific device_id when calling torch.init_process_group to avoid NCCL communication errors. #76

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gongweibao
Copy link

@gongweibao gongweibao commented Mar 5, 2025

Such as

using GPU  to perform barrier as devices used by this process are currently unknown. 
This can potentially cause a hang if this rank to GPU mapping is incorrect. 
Specify device_ids in barrier() to force use of a particular device, or call init_process_group() with a device_id

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.

1 participant