GCVL
Multi-platform (Windows, Unix and Mac OS) C++/OpenCL/CUDA library with several Computer Vision algorithms.
CUDA_Array< T > Class Template Reference

#include <cudautils.h>

List of all members.

Public Member Functions

 CUDA_Array ()
 Default constructor.
void Initialize (int _N, T *&host_array)
 Inititalizes a CUDA device array.
void Release_Memory ()
 Releases memory associated to a CUDA device array.
void Host_to_Device ()
 Copies data from the host array to the device array.
void Device_to_Host ()
 Copies data from the device array to the host array.
T * Get_Device_Array ()
 Obtains the device array CUDA memory pointer.
T * Get_Host_Pointer ()
 Obtains the host array memory pointer.

template<class T>
class CUDA_Array< T >


Constructor & Destructor Documentation

template<class T >
CUDA_Array< T >::CUDA_Array ( )

Default constructor.


Member Function Documentation

template<class T >
void CUDA_Array< T >::Device_to_Host ( )

Copies data from the device array to the host array.

template<class T>
T* CUDA_Array< T >::Get_Device_Array ( ) [inline]

Obtains the device array CUDA memory pointer.

Returns:
CUDA device memory pointer.
template<class T>
T* CUDA_Array< T >::Get_Host_Pointer ( ) [inline]

Obtains the host array memory pointer.

Returns:
memory pointer.
template<class T >
void CUDA_Array< T >::Host_to_Device ( )

Copies data from the host array to the device array.

template<class T>
void CUDA_Array< T >::Initialize ( int  _N,
T *&  _host_array 
)

Inititalizes a CUDA device array.

Parameters:
_Nnumber of elements in the array.
_host_arraypointer to the host array.
template<class T >
void CUDA_Array< T >::Release_Memory ( )

Releases memory associated to a CUDA device array.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines