Public Member Functions | List of all members
rmm::mr::pinned_memory_resource Class Referencefinal

A host_memory_resource that uses cudaMallocHost to allocate pinned/page-locked host memory. More...

#include <pinned_memory_resource.hpp>

Inheritance diagram for rmm::mr::pinned_memory_resource:
Inheritance graph
[legend]
Collaboration diagram for rmm::mr::pinned_memory_resource:
Collaboration graph
[legend]

Public Member Functions

 pinned_memory_resource (pinned_memory_resource const &)=default
 
 pinned_memory_resource (pinned_memory_resource &&)=default
 
pinned_memory_resourceoperator= (pinned_memory_resource const &)=default
 
pinned_memory_resourceoperator= (pinned_memory_resource &&)=default
 
- Public Member Functions inherited from rmm::mr::host_memory_resource
void * allocate (std::size_t bytes, std::size_t alignment=alignof(std::max_align_t))
 Allocates memory on the host of size at least bytes bytes. More...
 
void deallocate (void *p, std::size_t bytes, std::size_t alignment=alignof(std::max_align_t))
 Deallocate memory pointed to by p. More...
 
bool is_equal (host_memory_resource const &other) const noexcept
 Compare this resource to another. More...
 

Detailed Description

A host_memory_resource that uses cudaMallocHost to allocate pinned/page-locked host memory.

------------------------------------------------------------------------—*

See https://devblogs.nvidia.com/how-optimize-data-transfers-cuda-cc/


The documentation for this class was generated from the following file: