NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Methods | Friends | List of all members
mgpu::CudaDeviceMem< T > Class Template Reference

Detailed description

template< typename T>
class mgpu::CudaDeviceMem< T >

Definition at line 143 of file mgpucontext.h.

#include <mgpucontext.h>

Inheritance diagram for mgpu::CudaDeviceMem< T >:
mgpu::CudaBase mgpu::noncopyable

Public Methods

 ~CudaDeviceMem ()
 
const T * get () const
 
T * get ()
 
 operator const T * () const
 
 operator T * ()
 
size_t Size () const
 
cudaError_t ToDevice (T *data, size_t count) const
 
cudaError_t ToDevice (size_t srcOffest, size_t bytes, void *data) const
 
cudaError_t ToHost (T *data, size_t count) const
 
cudaError_t ToHost (std::vector< T > &data) const
 
cudaError_t ToHost (std::vector< T > &data, size_t count) const
 
cudaError_t ToHost (size_t srcOffset, size_t bytes, void *data) const
 
cudaError_t FromDevice (const T *data, size_t count)
 
cudaError_t FromDevice (size_t dstOffset, size_t bytes, const void *data)
 
cudaError_t FromHost (const std::vector< T > &data)
 
cudaError_t FromHost (const std::vector< T > &data, size_t count)
 
cudaError_t FromHost (const T *data, size_t count)
 
cudaError_t FromHost (size_t destOffset, size_t bytes, const void *data)
 
- Public Methods inherited from mgpu::CudaBase
 CudaBase ()
 
virtual ~CudaBase ()
 
virtual long AddRef ()
 
virtual void Release ()
 

Friends

class CudaMemSupport
 
class CudaContext
 

Additional Inherited Members

- Proteced Methods inherited from mgpu::noncopyable
 noncopyable ()
 
 ~noncopyable ()
 

Constructor & Destructor Documentation

template<typename T >
mgpu::CudaDeviceMem< T >::~CudaDeviceMem ( )

Definition at line 395 of file mgpucontext.h.

Member Function Documentation

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::FromDevice ( const T *  data,
size_t  count 
)

Definition at line 360 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::FromDevice ( size_t  dstOffset,
size_t  bytes,
const void *  data 
)

Definition at line 364 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::FromHost ( const std::vector< T > &  data)

Definition at line 379 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::FromHost ( const std::vector< T > &  data,
size_t  count 
)

Definition at line 372 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::FromHost ( const T *  data,
size_t  count 
)

Definition at line 383 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::FromHost ( size_t  destOffset,
size_t  bytes,
const void *  data 
)

Definition at line 387 of file mgpucontext.h.

template<typename T>
const T* mgpu::CudaDeviceMem< T >::get ( ) const
inline

Definition at line 148 of file mgpucontext.h.

template<typename T>
T* mgpu::CudaDeviceMem< T >::get ( )
inline

Definition at line 149 of file mgpucontext.h.

template<typename T>
mgpu::CudaDeviceMem< T >::operator const T * ( ) const
inline

Definition at line 151 of file mgpucontext.h.

template<typename T>
mgpu::CudaDeviceMem< T >::operator T * ( )
inline

Definition at line 152 of file mgpucontext.h.

template<typename T>
size_t mgpu::CudaDeviceMem< T >::Size ( ) const
inline

Definition at line 155 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::ToDevice ( T *  data,
size_t  count 
) const

Definition at line 316 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::ToDevice ( size_t  srcOffest,
size_t  bytes,
void *  data 
) const

Definition at line 320 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::ToHost ( T *  data,
size_t  count 
) const

Definition at line 332 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::ToHost ( std::vector< T > &  data) const

Definition at line 343 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::ToHost ( std::vector< T > &  data,
size_t  count 
) const

Definition at line 336 of file mgpucontext.h.

template<typename T >
cudaError_t mgpu::CudaDeviceMem< T >::ToHost ( size_t  srcOffset,
size_t  bytes,
void *  data 
) const

Definition at line 347 of file mgpucontext.h.

Friends And Related Function Documentation

template<typename T>
friend class CudaContext
friend

Definition at line 174 of file mgpucontext.h.

template<typename T>
friend class CudaMemSupport
friend

Definition at line 144 of file mgpucontext.h.


The documentation for this class was generated from the following file: