8 #include <rmm/detail/export.hpp>
9 #include <rmm/mr/detail/cuda_async_managed_memory_resource_impl.hpp>
11 #include <cuda/memory_resource>
12 #include <cuda_runtime_api.h>
16 namespace RMM_NAMESPACE {
29 :
public cuda::mr::shared_resource<detail::cuda_async_managed_memory_resource_impl> {
30 using shared_base = cuda::mr::shared_resource<detail::cuda_async_managed_memory_resource_impl>;
37 cuda::mr::device_accessible) noexcept
45 cuda::mr::host_accessible) noexcept
83 cuda::mr::device_accessible>);
85 cuda::mr::host_accessible>);
Memory resource that uses cudaMallocFromPoolAsync/cudaFreeFromPoolAsync with a managed memory pool fo...
Definition: cuda_async_managed_memory_resource.hpp:29
cuda_async_managed_memory_resource()
Constructs a cuda_async_managed_memory_resource with the default managed memory pool for the current ...
cudaMemPool_t pool_handle() const noexcept
Returns the underlying native handle to the CUDA pool.
friend void get_property(cuda_async_managed_memory_resource const &, cuda::mr::device_accessible) noexcept
Enables the cuda::mr::device_accessible property.
Definition: cuda_async_managed_memory_resource.hpp:36
friend void get_property(cuda_async_managed_memory_resource const &, cuda::mr::host_accessible) noexcept
Enables the cuda::mr::host_accessible property.
Definition: cuda_async_managed_memory_resource.hpp:44