ViennaCL - The Vienna Computing Library  1.2.0
Public Member Functions
device Class Reference

A class representing a compute device (e.g. a GPU) More...

#include <device.hpp>

Public Member Functions

 device ()
 device (cl_device_id dev)
 device (const device &other)
void init (cl_device_id dev)
 Initializes the class from a given device ID.
bool double_support () const
 Returns true if the device supports double precision.
std::string double_support_extension () const
cl_device_id id () const
 Returns the OpenCL device id.
std::string name () const
 Returns the device name.
std::string driver_version () const
 Returns the driver version.
cl_uint max_compute_units () const
 Returns the number of compute units on the device.
size_t max_workgroup_size () const
 Returns the maximum work group size for the device.
cl_ulong global_memory () const
 Returns the global memory for the device.
cl_ulong local_memory () const
 Returns the local memory for the device.
cl_ulong max_allocable_memory () const
 Returns the maximum allocable memory for the device.
std::string info () const
 Returns an info string with a few properties of the device.
size_t max_work_group_size () const
cl_uint compute_units () const
cl_device_type type () const
bool operator== (device const &other) const
bool operator== (cl_device_id other) const

Detailed Description

A class representing a compute device (e.g. a GPU)

Constructor & Destructor Documentation

device ( )
inlineexplicit
device ( cl_device_id  dev)
inlineexplicit
device ( const device other)
inline

Member Function Documentation

cl_uint compute_units ( ) const
inline
bool double_support ( ) const
inline

Returns true if the device supports double precision.

std::string double_support_extension ( ) const
inline
std::string driver_version ( ) const
inline

Returns the driver version.

cl_ulong global_memory ( ) const
inline

Returns the global memory for the device.

cl_device_id id ( ) const
inline

Returns the OpenCL device id.

std::string info ( ) const
inline

Returns an info string with a few properties of the device.

void init ( cl_device_id  dev)
inline

Initializes the class from a given device ID.

cl_ulong local_memory ( ) const
inline

Returns the local memory for the device.

cl_ulong max_allocable_memory ( ) const
inline

Returns the maximum allocable memory for the device.

cl_uint max_compute_units ( ) const
inline

Returns the number of compute units on the device.

size_t max_work_group_size ( ) const
inline
size_t max_workgroup_size ( ) const
inline

Returns the maximum work group size for the device.

std::string name ( ) const
inline

Returns the device name.

bool operator== ( device const &  other) const
inline
bool operator== ( cl_device_id  other) const
inline
cl_device_type type ( ) const
inline

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