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

#include <oclutils.h>

List of all members.

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

Constructor & Destructor Documentation

Default constructor.


Member Function Documentation

void OpenCL_devices_list::Initialize ( const OpenCL_platform &  _platform,
const std::string &  preferred_platform 
)

Function that sets the device information parameters.

Parameters:
_platformplatform in which the device list will be obtained.
preferred_platformpreferred platform name.

Obtains the type of the devices present on list.

Returns:
corresponding type key.

Obtains the preferred OpenCL device.

Returns:
preferred OpenCL device.

Obtains the preferred OpenCL device of the list.

Returns:
preferred OpenCL device id.

Obtains the preferred OpenCL device context.

Returns:
preferred OpenCL device contex.

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.

Parameters:
_preferred_devicepreferred device number (-1 if we want to guess).

Member Data Documentation


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