-
Notifications
You must be signed in to change notification settings - Fork 56
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
More generic check for CUDA-aware MPI #1793
base: main
Are you sure you want to change the base?
Conversation
…; warning is issued if PyTorch supports GPUs but no cuda-aware MPI is found.
Thank you for the PR! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1793 +/- ##
=======================================
Coverage 92.24% 92.25%
=======================================
Files 84 84
Lines 12460 12465 +5
=======================================
+ Hits 11494 11499 +5
Misses 966 966
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
As far as I'm concerned this can be merged, thanks for looking into this!
Thank you for the PR! |
Thank you for the PR! |
Benchmarks results - Sponsored by perun
Grafana Dashboard |
CUDA_AWARE_MPI = CUDA_AWARE_MPI or os.environ.get("PSP_CUDA") == "1" | ||
|
||
# warn the user if CUDA-aware MPI is not available, but PyTorch can use GPUs | ||
if torch.cuda.is_available() and not CUDA_AWARE_MPI: |
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.
Something occurred to us earlier just before we merged this: if torch.cuda.is_available()
will return True with ROCm as well. We need to constrain the check a bit more, that's why we decided to to merge yet.
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.
Thats true, so actually we need to check for ROCm/HIP and CUDA in PyTorch and need to compare with corresponding MPI-capabilities to avoid the (hopefully) unlikely case of having ROCm/HIP-PyTorch and CUDA-MPI or CUDA-PyTorch and ROCm/HIP-MPI etc.
fixes #1787
Due Diligence
[ ] benchmarks: created for new functionality[ ] benchmarks: performance improved or maintainedDoes this change modify the behaviour of other functions? If so, which?
no