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

[cifar ds training]: Set cuda device during initialization of distributed backend. #931

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

jagadish-amd
Copy link
Contributor

@jagadish-amd jagadish-amd commented Oct 15, 2024

The commit is needed to avoid GPU 0 being set as the compute stream via torch.cuda.current_stream() during initialization across all GPUs.
The perf RunningAvgSamplesPerSec metrics improves on a multi gpu node, tested on AMD GPU with ROCm stack.
As number of GPUs increases; without this commit, GPU 0 takes in more load compared to other GPUs.

The commit is needed to avoid GPU 0 being set as the
compute stream via torch.cuda.current_stream() during initialization
across all GPUs.

Signed-off-by: Jagadish Krishnamoorthy <jagadish.krishnamoorthy@amd.com>
@jagadish-amd
Copy link
Contributor Author

ping @jeffdaily

Signed-off-by: Jagadish Krishnamoorthy <jagadish.krishnamoorthy@amd.com>
@jagadish-amd
Copy link
Contributor Author

jagadish-amd commented Oct 17, 2024

@tjruwase can you please review / merge ?

@tjruwase
Copy link
Contributor

@tjruwase can you please review / merge ?

@jagadish-amd, apologies for the delay. Done.

@tjruwase tjruwase merged commit 130fb58 into microsoft:master Oct 29, 2024
2 checks passed
@jagadish-amd jagadish-amd deleted the cifar-set_device branch October 29, 2024 18:20
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