Template Function thrust::device_new(const size_t)¶
Function Documentation¶
-
template<typename
T>
device_ptr<T>thrust::device_new(const size_t n = 1) device_newimplements the new operator for types resident in device memory. It allocates device memory large enough to holdnnew objects of typeT.- Return
A
device_ptrto the newly allocated region of device memory.- Parameters
n: The number of objects to allocate. Defaults to1.