12 #include <cuda/memory_resource>
59 template <
typename Resource>
61 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62 requires std::constructible_from<rmm::device_async_resource_ref, Resource&&>
64 : _output_mr{std::forward<Resource>(output_mr)},
79 template <
typename OutputResource,
typename TemporaryResource>
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82 requires(std::constructible_from<rmm::device_async_resource_ref, OutputResource &&> and
83 std::constructible_from<rmm::device_async_resource_ref, TemporaryResource &&>)
85 : _output_mr{std::forward<OutputResource>(output_mr)},
86 _temporary_mr{std::forward<TemporaryResource>(temporary_mr)}
104 return _temporary_mr;
119 cuda::mr::any_resource<cuda::mr::device_accessible> mr)
135 [[deprecated(
"Use set_current_device_resource instead.")]]
136 inline cuda::mr::any_resource<cuda::mr::device_accessible>
159 [[deprecated(
"Use reset_current_device_resource instead.")]]
160 inline cuda::mr::any_resource<cuda::mr::device_accessible>
Non-owning references to the memory resources used by a cuDF operation.
memory_resources(Resource &&output_mr)
Construct with an explicit output resource and capture the current resource for temporaries.
memory_resources(OutputResource &&output_mr, TemporaryResource &&temporary_mr)
Construct with explicit output and temporary resources.
rmm::device_async_resource_ref get_temporary_mr() const noexcept
Return the resource used for intermediate allocations.
rmm::device_async_resource_ref get_output_mr() const noexcept
Return the resource used for allocations returned to the caller.
cuda::mr::any_resource< cuda::mr::device_accessible > set_current_device_resource_ref(rmm::device_async_resource_ref mr)
Set the current device memory resource reference.
cuda::mr::any_resource< cuda::mr::device_accessible > reset_current_device_resource()
Reset the current device memory resource to the initial resource.
cuda::mr::any_resource< cuda::mr::device_accessible > set_current_device_resource(cuda::mr::any_resource< cuda::mr::device_accessible > mr)
Set the current device memory resource.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
cuda::mr::any_resource< cuda::mr::device_accessible > reset_current_device_resource_ref()
Reset the current device memory resource reference to the initial resource.
device_async_resource_ref get_current_device_resource_ref()
cuda::mr::any_resource< cuda::mr::device_accessible > reset_current_device_resource()
cuda::mr::resource_ref< cuda::mr::device_accessible > device_async_resource_ref
cuda::mr::any_resource< cuda::mr::device_accessible > set_current_device_resource(cuda::mr::any_resource< cuda::mr::device_accessible > new_resource)
requires(is_index_type< IndexType >() &&is_relationally_comparable< KeyType, KeyType >()) struct dictionary_element
A type tag to specify that a column should be treated as a dictionary column.