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

Synchronize stream in DeviceBuffer.c_from_unique_ptr constructor #1100

Merged
merged 6 commits into from
Feb 28, 2023

Conversation

shwina
Copy link
Contributor

@shwina shwina commented Sep 26, 2022

The DeviceBuffer.__cinit__ method syncs the default stream to ensure that access to the .ptr and .size attributes of the underlying rmm::device_buffer is safe.

However, the staticmethod DeviceBuffer.c_from_unique_ptr does not. This PR adds a stream sync to it.

@shwina shwina requested a review from a team as a code owner September 26, 2022 14:53
@github-actions github-actions bot added the Python Related to RMM Python API label Sep 26, 2022
@shwina shwina added bug Something isn't working non-breaking Non-breaking change labels Sep 26, 2022
@shwina
Copy link
Contributor Author

shwina commented Sep 26, 2022

rerun tests

@shwina
Copy link
Contributor Author

shwina commented Sep 27, 2022

rerun tests

@harrism
Copy link
Member

harrism commented Sep 28, 2022

@ashwin is this a 22.10 code freeze blocker? If you merge the latest 22.10 branch CI should work now.

@harrism
Copy link
Member

harrism commented Sep 28, 2022

I missed this PR because it is not assigned to a project.

@ashwin
Copy link

ashwin commented Sep 28, 2022

@shwina I believe the above query from Mark Harris is meant for you. 😊

@harrism
Copy link
Member

harrism commented Sep 29, 2022

Oops, sorry.

@shwina shwina changed the base branch from branch-22.10 to branch-22.12 September 29, 2022 20:19
@shwina
Copy link
Contributor Author

shwina commented Sep 29, 2022

Retargeting, as I don't want to introduce this change so late into the release. So far it has never bitten us...

@shwina
Copy link
Contributor Author

shwina commented Sep 30, 2022

rerun tests

@vyasr
Copy link
Contributor

vyasr commented Feb 23, 2023

@shwina should we get this into 23.04? Seems like it dropped off all our radars but not for any particular reason.

@jakirkham jakirkham changed the base branch from branch-22.12 to branch-23.04 February 28, 2023 07:04
@jakirkham
Copy link
Member

Retargeted to branch-23.04

@jakirkham
Copy link
Member

/merge

@rapids-bot rapids-bot bot merged commit 3bdadd6 into rapidsai:branch-23.04 Feb 28, 2023
@jakirkham
Copy link
Member

Thanks all! 🙏

If we find anything else is needed here, please raise an issue (or PR) and we can follow up from there 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change Python Related to RMM Python API
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants