SyTen

◆ alloc_on_device()

CudaPtr< void > syten::Cuda::alloc_on_device ( std::size_t  sz,
[[maybe_unused] ] std::int16_t  device 
)

Allocates sz bytes on the specified CUDA allocation device.

Allocates enough space for num objects of type T on the specified CUDA device and returns an appropriate CudaPtr.

References syten::Cuda::CudaAllocator::alloc(), and allocator.

Referenced by alloc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: