RMM  23.12
RAPIDS Memory Manager
Public Member Functions | List of all members
rmm::mr::new_delete_resource Class Referencefinal

A host_memory_resource that uses the global operator new and operator delete to allocate host memory. More...

#include <new_delete_resource.hpp>

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

Public Member Functions

 new_delete_resource (new_delete_resource const &)=default
 Default copy constructor.
 
 new_delete_resource (new_delete_resource &&)=default
 Default move constructor.
 
new_delete_resourceoperator= (new_delete_resource const &)=default
 Default copy assignment operator. More...
 
new_delete_resourceoperator= (new_delete_resource &&)=default
 Default move assignment operator. More...
 
- Public Member Functions inherited from rmm::mr::host_memory_resource
 host_memory_resource (host_memory_resource const &)=default
 Default copy constructor.
 
 host_memory_resource (host_memory_resource &&) noexcept=default
 Default move constructor.
 
host_memory_resourceoperator= (host_memory_resource const &)=default
 Default copy assignment operator. More...
 
host_memory_resourceoperator= (host_memory_resource &&) noexcept=default
 Default move assignment operator. More...
 
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 *ptr, std::size_t bytes, std::size_t alignment=alignof(std::max_align_t))
 Deallocate memory pointed to by ptr. More...
 
bool is_equal (host_memory_resource const &other) const noexcept
 Compare this resource to another. More...
 
bool operator== (host_memory_resource const &other) const noexcept
 Comparison operator with another device_memory_resource. More...
 
bool operator!= (host_memory_resource const &other) const noexcept
 Comparison operator with another device_memory_resource. More...
 

Detailed Description

A host_memory_resource that uses the global operator new and operator delete to allocate host memory.

Member Function Documentation

◆ operator=() [1/2]

new_delete_resource& rmm::mr::new_delete_resource::operator= ( new_delete_resource &&  )
default

Default move assignment operator.

Returns
new_delete_resource& Reference to the assigned object

◆ operator=() [2/2]

new_delete_resource& rmm::mr::new_delete_resource::operator= ( new_delete_resource const &  )
default

Default copy assignment operator.

Returns
new_delete_resource& Reference to the assigned object

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