|
inline |
Standard ctor, takes the number of elements and potentially a device hint on which device this memory should be allocated.
device_hint
is -1, allocates on the next device provided by Cuda::alloc().References syten::Cuda::CudaDynArray< Type >::alloc(), syten::Cuda::CudaDynArray< Type >::alloc_on_device(), and syten::Cuda::CudaDynArray< Type >::data.