|
GCVL
Multi-platform (Windows, Unix and Mac OS) C++/OpenCL/CUDA library with several Computer Vision algorithms.
|
#include <cudautils.h>
Public Member Functions | |
| CUDA_devices_list () | |
| Default constructor. | |
| void | Initialize () |
| Inititalizes the CUDA device list, obtaining all the compute devices present in the system and tries to guess which one is the best. | |
| void | Set_Preferred_CUDA (const int _preferred_device=-1) |
| Sets the preferred CUDA device. | |
| int | Preferred_CUDA () |
| Obtains the preferred CUDA device id. | |
| void | Print () |
| Prints information related to the CUDA devices present in the system. | |
Default constructor.
| void CUDA_devices_list::Initialize | ( | ) |
Inititalizes the CUDA device list, obtaining all the compute devices present in the system and tries to guess which one is the best.
| int CUDA_devices_list::Preferred_CUDA | ( | ) | [inline] |
Obtains the preferred CUDA device id.
| void CUDA_devices_list::Print | ( | ) |
Prints information related to the CUDA devices present in the system.
| void CUDA_devices_list::Set_Preferred_CUDA | ( | const int | _preferred_device = -1 | ) | [inline] |
Sets the preferred CUDA device.
| _preferred_device | device id that is going to be used, -1 if we want GCVL to guess which is the best device available. |