thrust
|
#include <thrust/device_allocator.h>
Public Member Functions | |
__host__ | device_ptr_memory_resource () |
__host__ | device_ptr_memory_resource (Upstream *upstream) |
virtual __host__ pointer | do_allocate (std::size_t bytes, std::size_t alignment=alignof(max_align_t)) |
virtual __host__ void | do_deallocate (pointer p, std::size_t bytes, std::size_t alignment) |
![]() | |
virtual | ~memory_resource () |
pointer | allocate (std::size_t bytes, std::size_t alignment=alignof(max_align_t)) |
void | deallocate (pointer p, std::size_t bytes, std::size_t alignment=alignof(max_align_t)) |
__host__ __device__ bool | is_equal (const memory_resource &other) const noexcept |
__host__ virtual __device__ bool | do_is_equal (const memory_resource &other) const noexcept |
Additional Inherited Members | |
![]() | |
typedef device_ptr< void > | pointer |
Memory resource adaptor that turns any memory resource that returns a fancy with the same tag as device_ptr
, and adapts it to a resource that returns a device_ptr
.