|
GCVL
Multi-platform (Windows, Unix and Mac OS) C++/OpenCL/CUDA library with several Computer Vision algorithms.
|
#include <oclutils.h>
Public Member Functions | |
| OpenCL_devices_list () | |
| Default constructor. | |
| ~OpenCL_devices_list () | |
| Class destructor. | |
| void | Set_Preferred_OpenCL (const int _preferred_device=-1) |
| Sets the preferred OpenCL device of the list. | |
| OpenCL_device & | Preferred_OpenCL () |
| Obtains the preferred OpenCL device. | |
| cl_device_id & | Preferred_OpenCL_Device () |
| Obtains the preferred OpenCL device of the list. | |
| cl_context & | Preferred_OpenCL_Device_Context () |
| Obtains the preferred OpenCL device context. | |
| int | nb_devices () |
| Obtains the type of the devices present on list. | |
| void | Print () const |
| Prints information about the devices in the list. | |
| void | Initialize (const OpenCL_platform &_platform, const std::string &preferred_platform) |
| Function that sets the device information parameters. | |
Public Attributes | |
| OpenCL_device * | preferred_device |
Default constructor.
Class destructor.
| void OpenCL_devices_list::Initialize | ( | const OpenCL_platform & | _platform, |
| const std::string & | preferred_platform | ||
| ) |
Function that sets the device information parameters.
| _platform | platform in which the device list will be obtained. |
| preferred_platform | preferred platform name. |
| int OpenCL_devices_list::nb_devices | ( | ) | [inline] |
Obtains the type of the devices present on list.
Obtains the preferred OpenCL device.
| cl_device_id& OpenCL_devices_list::Preferred_OpenCL_Device | ( | ) | [inline] |
Obtains the preferred OpenCL device of the list.
| cl_context& OpenCL_devices_list::Preferred_OpenCL_Device_Context | ( | ) | [inline] |
Obtains the preferred OpenCL device context.
| void OpenCL_devices_list::Print | ( | ) | const |
Prints information about the devices in the list.
| void OpenCL_devices_list::Set_Preferred_OpenCL | ( | const int | _preferred_device = -1 | ) |
Sets the preferred OpenCL device of the list.
| _preferred_device | preferred device number (-1 if we want to guess). |