|
| pinned_memory_resource (pinned_memory_resource const &)=default |
| Default copy constructor.
|
|
| pinned_memory_resource (pinned_memory_resource &&)=default |
| Default move constructor.
|
|
pinned_memory_resource & | operator= (pinned_memory_resource const &)=default |
| Default copy assignment operator. More...
|
|
pinned_memory_resource & | operator= (pinned_memory_resource &&)=default |
| Default move assignment operator. More...
|
|
bool | supports_streams () const noexcept |
| Query whether the pinned_memory_resource supports use of non-null CUDA streams for allocation/deallocation. More...
|
|
bool | supports_get_mem_info () const noexcept |
| Query whether the resource supports the get_mem_info API. More...
|
|
std::pair< std::size_t, std::size_t > | get_mem_info (cuda_stream_view stream) const |
| Queries the amount of free and total memory for the resource. More...
|
|
void * | allocate_async (std::size_t bytes, std::size_t alignment, cuda_stream_view) |
| Pretend to support the allocate_async interface, falling back to stream 0. More...
|
|
void * | allocate_async (std::size_t bytes, cuda_stream_view) |
| Pretend to support the allocate_async interface, falling back to stream 0. More...
|
|
void | deallocate_async (void *ptr, std::size_t bytes, std::size_t alignment, cuda_stream_view) |
| Pretend to support the deallocate_async interface, falling back to stream 0. More...
|
|
| 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...
|
|