Kokkos Node API and Local Linear Algebra Kernels Version of the Day
Allocator/deallocator with host/device copy-back capability. More...
|ArrayRCP< T >||alloc () const|
|Allocate the buffer, returning a Teuchos::ArrayRCP of the requested type, with a copy-back to GPU memory occurring at deallocation. |
Allocator/deallocator with host/device copy-back capability.
Allocates a segment of page-locked memory associated with CUDA device memory. Upon deallocation, performs a copy-back of the allocated host memory before the host memory is deallocated. This copy-back is only performed if the device buffer is still valid (i.e., it hasn't been deallocated).