Public Member Functions | Private Attributes

cl::driver Class Reference

This class represents the OpenCL driver. More...

#include <clinfo.hpp>

List of all members.

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.

Detailed Description

This class represents the OpenCL driver.

This class has no counterpart in OpenCL other than some global functions that allow querying the platforms.


Member Function Documentation

platform cl::driver::get_platform ( cl_uint  index ) const

Returns a specific platform.

Parameters:
indexzero-based index of the platform requested
Returns:
an object representing the platform
cl_uint cl::driver::num_platforms (  ) const

Retrieve the number of platforms.

Returns:
the number of OpenCL platforms

The documentation for this class was generated from the following files: