7 #include <rmm/detail/export.hpp>
8 #include <rmm/mr/detail/prefetch_resource_adaptor_impl.hpp>
11 #include <cuda/memory_resource>
15 namespace RMM_NAMESPACE {
29 :
public cuda::mr::shared_resource<detail::prefetch_resource_adaptor_impl> {
30 using shared_base = cuda::mr::shared_resource<detail::prefetch_resource_adaptor_impl>;
37 cuda::mr::device_accessible) noexcept
Resource that prefetches all memory allocations.
Definition: prefetch_resource_adaptor.hpp:29
prefetch_resource_adaptor(cuda::mr::any_resource< cuda::mr::device_accessible > upstream)
Construct a new prefetch resource adaptor using upstream to satisfy allocation requests.
friend void get_property(prefetch_resource_adaptor const &, cuda::mr::device_accessible) noexcept
Enables the cuda::mr::device_accessible property.
Definition: prefetch_resource_adaptor.hpp:36
device_async_resource_ref get_upstream_resource() const noexcept
rmm::device_async_resource_ref to the upstream resource
cuda::mr::resource_ref< cuda::mr::device_accessible > device_async_resource_ref
Alias for a cuda::mr::resource_ref with the property cuda::mr::device_accessible.
Definition: resource_ref.hpp:30