This class represents the OpenCL driver. More...
#include <clinfo.hpp>
Public Member Functions | |
driver () | |
Default constructor. | |
~driver () | |
Destructor. | |
cl_uint | num_platforms () const |
Retrieve the number of platforms. | |
platform | get_platform (cl_uint index) const |
Returns a specific platform. | |
Private Attributes | |
cl_uint | num_platforms_ |
The number of OpenCL platforms. | |
boost::scoped_array < cl_platform_id > | platform_ids_ |
An array of OpenCL platform ID's. |
This class represents the OpenCL driver.
This class has no counterpart in OpenCL other than some global functions that allow querying the platforms.
platform cl::driver::get_platform | ( | cl_uint | index ) | const |
Returns a specific platform.
index | zero-based index of the platform requested |
cl_uint cl::driver::num_platforms | ( | ) | const |
Retrieve the number of platforms.