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().