RMM
23.12
RAPIDS Memory Manager
|
A host_memory_resource
that uses the global operator new
and operator delete
to allocate host memory.
More...
#include <new_delete_resource.hpp>
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_resource & | operator= (new_delete_resource const &)=default |
Default copy assignment operator. More... | |
new_delete_resource & | operator= (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_resource & | operator= (host_memory_resource const &)=default |
Default copy assignment operator. More... | |
host_memory_resource & | operator= (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... | |
A host_memory_resource
that uses the global operator new
and operator delete
to allocate host memory.
|
default |
Default move assignment operator.
|
default |
Default copy assignment operator.