SyTen

◆ CudaDynArray() [2/5]

template<typename Type >
syten::Cuda::CudaDynArray< Type >::CudaDynArray ( Size  length_,
int  device_hint = -1 
)
inline

Standard ctor, takes the number of elements and potentially a device hint on which device this memory should be allocated.

Remarks
If device_hint is -1, allocates on the next device provided by Cuda::alloc().
The allocated memory is not initialised.

References syten::Cuda::CudaDynArray< Type >::alloc(), syten::Cuda::CudaDynArray< Type >::alloc_on_device(), and syten::Cuda::CudaDynArray< Type >::data.

+ Here is the call graph for this function: