A class representing a compute device (e.g. a GPU).
More...
#include <device.hpp>
Detailed Description
A class representing a compute device (e.g. a GPU).
Constructor & Destructor Documentation
device |
( |
cl_device_id |
dev |
) |
[inline, explicit] |
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] |
bool operator== |
( |
cl_device_id |
other |
) |
const [inline] |
bool operator== |
( |
device const & |
other |
) |
const [inline] |
cl_device_type type |
( |
|
) |
const [inline] |
The documentation for this class was generated from the following file:
- /data/development/ViennaCL/dev/viennacl/ocl/device.hpp