Kokkos Node API and Local Linear Algebra Kernels Version of the Day
Public Member Functions
Kokkos::CUDANodeCopyBackDeallocator< T > Class Template Reference

Allocator/deallocator with host/device copy-back capability. More...

#include <Kokkos_CUDANodeUtils.hpp>

List of all members.

Public Member Functions

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.

Detailed Description

template<class T>
class Kokkos::CUDANodeCopyBackDeallocator< T >

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

Definition at line 77 of file Kokkos_CUDANodeUtils.hpp.


Member Function Documentation

template<class T >
ArrayRCP< T > Kokkos::CUDANodeCopyBackDeallocator< T >::alloc ( ) const

Allocate the buffer, returning a Teuchos::ArrayRCP of the requested type, with a copy-back to GPU memory occurring at deallocation.

Definition at line 108 of file Kokkos_CUDANodeUtils.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends