ViennaCL - The Vienna Computing Library  1.5.1
Public Member Functions
platform Class Reference

Wrapper class for an OpenCL platform. More...

#include <platform.hpp>

Public Member Functions

 platform (vcl_size_t pf_index=0)
 
 platform (cl_platform_id pf_id)
 
 platform (platform const &other)
 
void operator= (cl_platform_id pf_id)
 
cl_platform_id id () const
 
std::string info () const
 Returns an information string. More...
 
std::vector< devicedevices (cl_device_type dtype=CL_DEVICE_TYPE_DEFAULT)
 Returns the available devices of the supplied device type. More...
 

Detailed Description

Wrapper class for an OpenCL platform.

This class was written when the OpenCL C++ bindings haven't been standardized yet. Regardless, it takes care about some additional details and is supposed to provide higher convenience.

Constructor & Destructor Documentation

platform ( vcl_size_t  pf_index = 0)
inline
platform ( cl_platform_id  pf_id)
inline
platform ( platform const &  other)
inline

Member Function Documentation

std::vector<device> devices ( cl_device_type  dtype = CL_DEVICE_TYPE_DEFAULT)
inline

Returns the available devices of the supplied device type.

cl_platform_id id ( ) const
inline
std::string info ( ) const
inline

Returns an information string.

void operator= ( cl_platform_id  pf_id)
inline

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