Resource that prefetches all memory allocations. More...
#include <prefetch_resource_adaptor.hpp>


Public Member Functions | |
| prefetch_resource_adaptor (cuda::mr::any_resource< cuda::mr::device_accessible > upstream) | |
Construct a new prefetch resource adaptor using upstream to satisfy allocation requests. More... | |
| device_async_resource_ref | get_upstream_resource () const noexcept |
| rmm::device_async_resource_ref to the upstream resource More... | |
Friends | |
| void | get_property (prefetch_resource_adaptor const &, cuda::mr::device_accessible) noexcept |
Enables the cuda::mr::device_accessible property. | |
Resource that prefetches all memory allocations.
This class is copyable and shares ownership of its internal state via cuda::mr::shared_resource.
|
explicit |
Construct a new prefetch resource adaptor using upstream to satisfy allocation requests.
| upstream | The resource_ref used for allocating/deallocating device memory |
|
noexcept |
rmm::device_async_resource_ref to the upstream resource