Public Types | Public Member Functions | List of all members
thrust::system::cuda::experimental::pinned_allocator< T > Class Template Reference

#include <thrust/system/cuda/experimental/pinned_allocator.h>

Public Types

typedef T value_type
typedef T * pointer
typedef const T * const_pointer
typedef T & reference
typedef const T & const_reference
typedef std::size_t size_type
typedef std::ptrdiff_t difference_type

Public Member Functions

__host__ __device__ pinned_allocator ()
__host__ __device__ ~pinned_allocator ()
__host__ __device__ pinned_allocator (pinned_allocator const &)
template<typename U >
__host__ __device__ pinned_allocator (pinned_allocator< U > const &)
__host__ __device__ pointer address (reference r)
__host__ __device__ const_pointer address (const_reference r)
__host__ pointer allocate (size_type cnt, const_pointer=0)
__host__ void deallocate (pointer p, size_type)
size_type max_size () const
__host__ __device__ bool operator== (pinned_allocator const &x) const
__host__ __device__ bool operator!= (pinned_allocator const &x) const

Detailed Description

template<typename T>
class thrust::system::cuda::experimental::pinned_allocator< T >

pinned_allocator is a CUDA-specific host memory allocator that employs cudaMallocHost for allocation.

See also

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