Public Member Functions | Friends | List of all members
rmm::mr::prefetch_resource_adaptor Class Reference

Resource that prefetches all memory allocations. More...

#include <prefetch_resource_adaptor.hpp>

Inheritance diagram for rmm::mr::prefetch_resource_adaptor:
Inheritance graph
[legend]
Collaboration diagram for rmm::mr::prefetch_resource_adaptor:
Collaboration graph
[legend]

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.
 

Detailed Description

Resource that prefetches all memory allocations.

This class is copyable and shares ownership of its internal state via cuda::mr::shared_resource.

Constructor & Destructor Documentation

◆ prefetch_resource_adaptor()

rmm::mr::prefetch_resource_adaptor::prefetch_resource_adaptor ( cuda::mr::any_resource< cuda::mr::device_accessible >  upstream)
explicit

Construct a new prefetch resource adaptor using upstream to satisfy allocation requests.

Parameters
upstreamThe resource_ref used for allocating/deallocating device memory

Member Function Documentation

◆ get_upstream_resource()

device_async_resource_ref rmm::mr::prefetch_resource_adaptor::get_upstream_resource ( ) const
noexcept

rmm::device_async_resource_ref to the upstream resource

Returns
rmm::device_async_resource_ref to the upstream resource

The documentation for this class was generated from the following file: