CudaPtr< void > syten::Cuda::alloc | ( | std::size_t | sz | ) |
Allocates sz
bytes on the next CUDA allocation device.
Allocates enough space for num
objects of type T on the next CUDA allocation device and returns an appropriate CudaPtr.
References alloc_on_device().