-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
Can we update sphinx documentation to explain this stuff? |
I've added sphinx documentation to explain about managed_ptr. |
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.
Looks good to me. Thanks for the documentation.
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
LGTM. |
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.