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

Update pin_memory implementation follow stock pytorch change #639

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

majing921201
Copy link
Contributor

@majing921201 majing921201 commented Jul 23, 2024

PyTorch implemented device agnostic aten::is_pinned and aten::_pin_memory in latest main.

pytorch/pytorch@8963623

@gujinghui gujinghui requested a review from guangyey July 23, 2024 13:35
Copy link
Contributor

@dvrogozh dvrogozh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Emm... Update and delete implementation are different things :). Can you, please, explain (in PR description) why implementation is not needed anymore on torch-xpu-ops side? Also, did you check that pytorch/pytorch#126491 continues to work?

@fengyuan14
Copy link
Contributor

Emm... Update and delete implementation are different things :). Can you, please, explain (in PR description) why implementation is not needed anymore on torch-xpu-ops side? Also, did you check that pytorch/pytorch#126491 continues to work?

Make sense. We will add comments. Please see the latest description.

@fengyuan14 fengyuan14 added this pull request to the merge queue Jul 24, 2024
Merged via the queue into main with commit 201a29b Jul 24, 2024
2 checks passed
@fengyuan14 fengyuan14 deleted the majing/pin_memory branch July 24, 2024 00:18
@dvrogozh
Copy link
Contributor

Thank you for updating description. Looks good to me.

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