KEMBAR78
Fixes failure in test_dataloader.py that occurs on jetson boards by puririshi98 · Pull Request #64757 · pytorch/pytorch · GitHub
Skip to content

Conversation

@puririshi98
Copy link
Contributor

CUDA IPC is not supported for jetsons

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Sep 9, 2021

🔗 Helpful links

💊 CI failures summary and remediations

As 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.

Click here to manually regenerate this comment.

# CUDA OOM error on Windows.
TEST_CUDA = torch.cuda.is_available()

dev_name = torch.cuda.get_device_name(torch.cuda.current_device()).lower()
Copy link
Collaborator

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?

Copy link
Contributor Author

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:
Copy link
Collaborator

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
Copy link

codecov bot commented Sep 9, 2021

Codecov Report

Merging #64757 (e51b72b) into master (2b41bf4) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            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     

@ngimel ngimel requested a review from ejguan September 11, 2021 01:17
@ngimel ngimel added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Sep 11, 2021
Copy link
Contributor

@ejguan ejguan left a 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.

@facebook-github-bot
Copy link
Contributor

@ejguan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ejguan merged this pull request in 2ae938e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants