|
GCVL
Multi-platform (Windows, Unix and Mac OS) C++/OpenCL/CUDA library with several Computer Vision algorithms.
|
#include <cudautils.h>
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. | |
| CUDA_Array< T >::CUDA_Array | ( | ) |
Default constructor.
| void CUDA_Array< T >::Device_to_Host | ( | ) |
Copies data from the device array to the host array.
| T* CUDA_Array< T >::Get_Device_Array | ( | ) | [inline] |
Obtains the device array CUDA memory pointer.
| T* CUDA_Array< T >::Get_Host_Pointer | ( | ) | [inline] |
Obtains the host array memory pointer.
| void CUDA_Array< T >::Host_to_Device | ( | ) |
Copies data from the host array to the device array.
| void CUDA_Array< T >::Initialize | ( | int | _N, |
| T *& | _host_array | ||
| ) |
Inititalizes a CUDA device array.
| _N | number of elements in the array. |
| _host_array | pointer to the host array. |
| void CUDA_Array< T >::Release_Memory | ( | ) |
Releases memory associated to a CUDA device array.