This class represents the information about a specific OpenCL platform. More...
#include <clinfo.hpp>
Public Member Functions | |
platform (const platform &platform) | |
Platform copy-constructor. | |
platform & | operator= (const platform &platform) |
Platform assignment-operator. | |
~platform () | |
Platform destructor. | |
cl_platform_id | platform_id () const |
const std::string & | profile () const |
const std::string & | version () const |
const std::string & | name () const |
const std::string & | vendor () const |
const std::string & | extensions () const |
bool | extension_supported (const std::string &extension_name) const |
Checks if an extension is supported. | |
cl_uint | num_devices () const |
Returns the number of devices. | |
device | get_device (cl_uint index) const |
Returns a specific device. | |
Private Member Functions | |
platform (cl_platform_id platform_id) | |
Platform constructor. | |
Private Attributes | |
cl_platform_id | platform_id_ |
std::string | profile_ |
std::string | version_ |
std::string | name_ |
std::string | vendor_ |
std::string | extensions_ |
cl_uint | num_devices_ |
boost::scoped_array< cl_device_id > | device_ids_ |
Friends | |
class | driver |
This class represents the information about a specific OpenCL platform.
It contains all information as provided by the driver.
cl::platform::platform | ( | cl_platform_id | platform_id ) | [private] |
Platform constructor.
platform_id | valid OpenCL platform ID |
Retrieves all available information on the given platform
bool cl::platform::extension_supported | ( | const std::string & | extension_name ) | const |
Checks if an extension is supported.
extension_name | the name of the extension |
device cl::platform::get_device | ( | cl_uint | index ) | const |
Returns a specific device.
index | zero-based index of the device requested |
cl_uint cl::platform::num_devices | ( | ) | const |
Returns the number of devices.