Template Class device_allocator

Nested Relationships

Inheritance Relationships

Base Type

Class Documentation

template<typename T>
class device_allocator : public thrust::device_new_allocator<T>

device_allocator is a device memory allocator. This implementation inherits from device_new_allocator.

See

device_ptr

See

device_new_allocator

See

http://www.sgi.com/tech/stl/Allocators.html

Public Functions

__host__ __device__ thrust::device_allocator::device_allocator()

No-argument constructor has no effect.

__host__ __device__ thrust::device_allocator::device_allocator(device_allocator const &)

Copy constructor has no effect.

template<typename U>__host__ __device__ thrust::device_allocator::device_allocator(device_allocator < U > const &)

Constructor from other allocator has no effect.

template<typename U>
struct rebind

The rebind metafunction provides the type of a device_allocator instantiated with another type.

Template Parameters
  • U: The other type to use for instantiation.

Public Types

template<>
typedef device_allocator<U> other

The typedef other gives the type of the rebound device_allocator.