-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Fixes failure in test_dataloader.py that occurs on jetson boards #64757
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
Conversation
CUDA IPC is not supported for jetsons
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit e51b72b (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
test/test_dataloader.py
Outdated
| # CUDA OOM error on Windows. | ||
| TEST_CUDA = torch.cuda.is_available() | ||
|
|
||
| dev_name = torch.cuda.get_device_name(torch.cuda.current_device()).lower() |
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.
Would this crash, if no GPU is available, or what is cuda.get_device_name returning in this case?
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.
yes it would crash, i added a guard against this.
| for ctx in supported_multiprocessing_contexts: | ||
| # windows doesn't support sharing cuda tensor; ROCm does not yet fully support IPC | ||
| if ctx in ['spawn', 'forkserver'] and TEST_CUDA and not IS_WINDOWS: | ||
| if ctx in ['spawn', 'forkserver'] and TEST_CUDA and not IS_WINDOWS and not IS_JETSON: |
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.
Maybe update the comment, too.
Codecov Report
@@ Coverage Diff @@
## master #64757 +/- ##
==========================================
- Coverage 66.65% 66.65% -0.01%
==========================================
Files 710 710
Lines 92418 92418
==========================================
- Hits 61601 61598 -3
- Misses 30817 30820 +3 |
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.
LGTM, thanks for adding this patch.
|
@ejguan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
CUDA IPC is not supported for jetsons