pinned_memory.hpp
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
8 #include <cudf/utilities/export.hpp>
10 
11 #include <optional>
12 
13 namespace CUDF_EXPORT cudf {
14 
23 
30 
35  std::optional<size_t> pool_size;
37 };
38 
47 
55 void set_kernel_pinned_copy_threshold(size_t threshold);
56 
63 
72 
79 
80 } // namespace CUDF_EXPORT cudf
detail::cccl_async_resource_ref< cuda::mr::resource_ref< cuda::mr::host_accessible, cuda::mr::device_accessible > > host_device_async_resource_ref
cuDF interfaces
Definition: host_udf.hpp:26
void set_kernel_pinned_copy_threshold(size_t threshold)
Set the threshold size for using kernels for pinned memory copies.
void set_allocate_host_as_pinned_threshold(size_t threshold)
Set the threshold size for allocating host memory as pinned memory.
size_t get_allocate_host_as_pinned_threshold()
Get the threshold size for allocating host memory as pinned memory.
size_t get_kernel_pinned_copy_threshold()
Get the threshold size for using kernels for pinned memory copies.
bool config_default_pinned_memory_resource(pinned_mr_options const &opts)
Configure the size of the default pinned memory resource.
rmm::host_device_async_resource_ref set_pinned_memory_resource(rmm::host_device_async_resource_ref mr)
Set the rmm resource to be used for pinned memory allocations.
rmm::host_device_async_resource_ref get_pinned_memory_resource()
Get the rmm resource being used for pinned memory allocations.
Options to configure the default pinned memory resource.
std::optional< size_t > pool_size