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

Improvements to managed_ptr #154

Merged
merged 8 commits into from
Sep 18, 2020
Merged

Conversation

adayton1
Copy link
Member

Adds chai::unpack so that the user can specify when they want a ManagedArray or a managed_ptr to be unpacked when calling chai::make_managed. If chai::unpack is used, the host pointer will be extracted and passed to the host constructor of the object and the device pointer will be extracted and passed to the device constructor of the object. The current behavior of automatically detecting when to do this falls down in the case where some ManagedArrays/managed_ptrs should be unpacked and others should not be, particularly when implicit conversions are disabled.

@robinson96
Copy link
Contributor

Can we update sphinx documentation to explain this stuff?

@adayton1
Copy link
Member Author

I've added sphinx documentation to explain about managed_ptr.

Copy link
Member

@davidbeckingsale davidbeckingsale left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for the documentation.

Copy link
Contributor

@robinson96 robinson96 left a comment

Choose a reason for hiding this comment

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

LGTM

@davidbeckingsale
Copy link
Member

LGTM.

@davidbeckingsale davidbeckingsale merged commit 8656be1 into develop Sep 18, 2020
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