Documentation
|
|
Allocates and returns a pointer to device memory. More...
| template<typename T > | |
| static T * | alloc (size_t elements) |
Allocate device memory array of elements. More... | |
| static void * | alloc (size_t elements, dtype type) |
Allocate device memory array of elements of type. More... | |
Allocates and returns a pointer to device memory.
This function will allocate memory on the device and return a pointer to the memory location. This data is not managed by the array and therefor needs to be deallocated using the array::free() function. The pointer can be used to create an array object using one of the Constructors.
|
static |