7 #include <rmm/detail/export.hpp>
8 #include <rmm/mr/detail/binning_memory_resource_impl.hpp>
11 #include <cuda/memory_resource>
16 namespace RMM_NAMESPACE {
31 :
public cuda::mr::shared_resource<detail::binning_memory_resource_impl> {
32 using shared_base = cuda::mr::shared_resource<detail::binning_memory_resource_impl>;
41 cuda::mr::device_accessible) noexcept
68 int8_t min_size_exponent,
69 int8_t max_size_exponent);
93 void add_bin(std::
size_t allocation_size,
Allocates memory from upstream resources associated with bin sizes.
Definition: binning_memory_resource.hpp:31
binning_memory_resource(cuda::mr::any_resource< cuda::mr::device_accessible > upstream, int8_t min_size_exponent, int8_t max_size_exponent)
Construct a new binning memory resource object with a range of initial bins.
device_async_resource_ref get_upstream_resource() const noexcept
device_async_resource_ref to the upstream resource
binning_memory_resource(cuda::mr::any_resource< cuda::mr::device_accessible > upstream)
Construct a new binning memory resource object.
friend void get_property(binning_memory_resource const &, cuda::mr::device_accessible) noexcept
Enables the cuda::mr::device_accessible property.
Definition: binning_memory_resource.hpp:40
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