Class interface for cl_device_id.
More...
|
| Device () |
| Default constructor - initializes to NULL.
|
|
| Device (const cl_device_id &device, bool retainObject=false) |
| Constructor from cl_device_id. More...
|
|
Device & | operator= (const cl_device_id &rhs) |
| Assignment operator from cl_device_id. More...
|
|
| Device (const Device &dev) |
| Copy constructor to forward copy to the superclass correctly. Required for MSVC.
|
|
Device & | operator= (const Device &dev) |
| Copy assignment to forward copy to the superclass correctly. Required for MSVC.
|
|
| Device (Device &&dev) CL_HPP_NOEXCEPT_ |
| Move constructor to forward move to the superclass correctly. Required for MSVC.
|
|
Device & | operator= (Device &&dev) |
| Move assignment to forward move to the superclass correctly. Required for MSVC.
|
|
template<typename T > |
cl_int | getInfo (cl_device_info name, T *param) const |
| Wrapper for clGetDeviceInfo().
|
|
template<cl_int name> |
detail::param_traits< detail::cl_device_info, name >::param_type | getInfo (cl_int *err=NULL) const |
| Wrapper for clGetDeviceInfo() that returns by value.
|
|
cl_int | createSubDevices (const cl_device_partition_property *properties, vector< Device > *devices) |
| Wrapper for clCreateSubDevices(). More...
|
|
| Wrapper (const cl_type &obj, bool retainObject) |
|
| Wrapper (const Wrapper< cl_type > &rhs) |
|
| Wrapper (Wrapper< cl_type > &&rhs) CL_HPP_NOEXCEPT_ |
|
Wrapper< cl_type > & | operator= (const Wrapper< cl_type > &rhs) |
|
Wrapper< cl_type > & | operator= (Wrapper< cl_type > &&rhs) |
|
Wrapper< cl_type > & | operator= (const cl_type &rhs) |
|
const cl_type & | operator() () const |
|
cl_type & | operator() () |
|
cl_type | get () const |
|
|
typedef cl_device_id | cl_type |
|
cl_int | retain () const |
|
cl_int | release () const |
|
static bool | isReferenceCountable (cl_device_id device) |
|
cl_type | object_ |
|
bool | referenceCountable_ |
|
Class interface for cl_device_id.
- Note
- Copies of these objects are inexpensive, since they don't 'own' any underlying resources or data structures.
- See also
- cl_device_id
Definition at line 1959 of file cl2.hpp.
◆ Device()
cl::Device::Device |
( |
const cl_device_id & |
device, |
|
|
bool |
retainObject = false |
|
) |
| |
|
inlineexplicit |
Constructor from cl_device_id.
This simply copies the device ID value, which is an inexpensive operation.
Definition at line 2002 of file cl2.hpp.
◆ createSubDevices()
cl_int cl::Device::createSubDevices |
( |
const cl_device_partition_property * |
properties, |
|
|
vector< Device > * |
devices |
|
) |
| |
|
inline |
Wrapper for clCreateSubDevices().
CL 1.2 version
Definition at line 2100 of file cl2.hpp.
◆ getDefault()
static Device cl::Device::getDefault |
( |
cl_int * |
errResult = NULL | ) |
|
|
inlinestatic |
◆ operator=()
Device& cl::Device::operator= |
( |
const cl_device_id & |
rhs | ) |
|
|
inline |
Assignment operator from cl_device_id.
This simply copies the device ID value, which is an inexpensive operation.
Definition at line 2038 of file cl2.hpp.
◆ setDefault()
static Device cl::Device::setDefault |
( |
const Device & |
default_device | ) |
|
|
inlinestatic |
Modify the default device to be used by subsequent operations. Will only set the default if no default was previously created.
- Returns
- updated default device. Should be compared to the passed value to ensure that it was updated.
Definition at line 2027 of file cl2.hpp.
The documentation for this class was generated from the following file: