64template <
class T>
using pinned_vector = std::vector<T, CudaHostAllocator<T>>;
void cuda_free_host(void *p)
std::vector< T, CudaHostAllocator< T > > pinned_vector
void cuda_malloc_host(void **p, std::size_t n)
Allocator that uses CUDA to allocate CPU memory.
CudaHostAllocator() noexcept=default
T * allocate(const std::size_t n) const
void deallocate(T *const p, std::size_t) const noexcept
bool operator!=(const CudaHostAllocator< U > &) const
bool operator==(const CudaHostAllocator< U > &) const
std::add_const_t< reference > const_reference