OpenPose
1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
|
Class interface for cl_device_id. More...
#include <cl2.hpp>
Inherits cl::detail::Wrapper< cl_device_id >.
Public Member Functions | |
Device () | |
Default constructor - initializes to NULL. More... | |
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. More... | |
Device & | operator= (const Device &dev) |
Copy assignment to forward copy to the superclass correctly. Required for MSVC. More... | |
Device (Device &&dev) CL_HPP_NOEXCEPT_ | |
Move constructor to forward move to the superclass correctly. Required for MSVC. More... | |
Device & | operator= (Device &&dev) |
Move assignment to forward move to the superclass correctly. Required for MSVC. More... | |
template<typename T > | |
cl_int | getInfo (cl_device_info name, T *param) const |
Wrapper for clGetDeviceInfo(). More... | |
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. More... | |
cl_int | createSubDevices (const cl_device_partition_property *properties, vector< Device > *devices) |
Wrapper for clCreateSubDevices(). More... | |
Public Member Functions inherited from cl::detail::Wrapper< cl_device_id > | |
Wrapper () | |
Wrapper (const cl_type &obj, bool retainObject) | |
~Wrapper () | |
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() () |
const cl_type | get () const |
cl_type | get () |
Static Public Member Functions | |
static Device | getDefault (cl_int *errResult=NULL) |
Returns the first device on the default context. More... | |
static Device | setDefault (const Device &default_device) |
Additional Inherited Members | |
Public Types inherited from cl::detail::Wrapper< cl_device_id > | |
typedef cl_device_id | cl_type |
Protected Member Functions inherited from cl::detail::Wrapper< cl_device_id > | |
cl_int | retain () const |
cl_int | release () const |
Static Protected Member Functions inherited from cl::detail::Wrapper< cl_device_id > | |
static bool | isReferenceCountable (cl_device_id device) |
Protected Attributes inherited from cl::detail::Wrapper< cl_device_id > | |
cl_type | object_ |
bool | referenceCountable_ |
Class interface for cl_device_id.
|
inline |
Default constructor - initializes to NULL.
|
inlineexplicit |
Constructor from cl_device_id.
This simply copies the device ID value, which is an inexpensive operation.
|
inline |
Copy constructor to forward copy to the superclass correctly. Required for MSVC.
|
inline |
Move constructor to forward move to the superclass correctly. Required for MSVC.
|
inline |
Wrapper for clCreateSubDevices().
CL 1.2 version
|
inlinestatic |
Returns the first device on the default context.
|
inline |
Wrapper for clGetDeviceInfo().
|
inline |
Wrapper for clGetDeviceInfo() that returns by value.
|
inline |
Assignment operator from cl_device_id.
This simply copies the device ID value, which is an inexpensive operation.
Copy assignment to forward copy to the superclass correctly. Required for MSVC.
Move assignment to forward move to the superclass correctly. Required for MSVC.
Modify the default device to be used by subsequent operations. Will only set the default if no default was previously created.