You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
Could you add an allocator class that uses cudaMallocManaged? This would be very useful for those implementing custom container classes.
I would image it as having a distinct pointer object (e.g. ManagedPtr) that doesn't default to either host or device execution policy but is implicitly convertible to either a built-in pointer for host execution, some sort of ManagedDevicePtr object that indicates device execution, or could be used by explicitly supplying an execution policy to the thrust algorithm functions.
Also, MangedPtr could be made to fulfill all of the requirements for a RandomAccessIterator (including having an iterator_category that's convertible to random_access_iterator_tag) so that it could be used with STL algorithm functions as well.
The text was updated successfully, but these errors were encountered:
Could you add an allocator class that uses cudaMallocManaged? This would be very useful for those implementing custom container classes.
I would image it as having a distinct pointer object (e.g. ManagedPtr) that doesn't default to either host or device execution policy but is implicitly convertible to either a built-in pointer for host execution, some sort of ManagedDevicePtr object that indicates device execution, or could be used by explicitly supplying an execution policy to the thrust algorithm functions.
Also, MangedPtr could be made to fulfill all of the requirements for a RandomAccessIterator (including having an iterator_category that's convertible to random_access_iterator_tag) so that it could be used with STL algorithm functions as well.
The text was updated successfully, but these errors were encountered: