CuPtr

fat pointer in CUDA

Constructors

this
this(T[] host)

create copy of host array into device

this
this(size_t n)

create uninitialized T.sizeof * n array in device

this
this(CUdeviceptr p, size_t l)

create fat pointer from raw pointer and its length

Destructor

~this
~this()

dtor calling cuMemFree

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

data
T* data()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

length
size_t length;
Undocumented in source.
ptr
CUdeviceptr ptr;
Undocumented in source.

Meta