OpenCL C++ Bindings
|
Class interface for cl_device_id. More...
#include <opencl.hpp>
Public Member Functions | |
Device () | |
Default constructor - initializes to nullptr. 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... | |
template<typename T > | |
cl_int | getInfo (cl_device_info name, T *param) const |
Wrapper for clGetDeviceInfo(). More... | |
template<cl_device_info name> | |
detail::param_traits< detail::cl_device_info, name >::param_type | getInfo (cl_int *err=nullptr) const |
Wrapper for clGetDeviceInfo() that returns by value. More... | |
cl_ulong | getHostTimer (cl_int *error=nullptr) |
std::pair< cl_ulong, cl_ulong > | getDeviceAndHostTimer (cl_int *error=nullptr) |
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 |
Static Public Member Functions | |
static Device | getDefault (cl_int *errResult=nullptr) |
Returns the first device on the default context. More... | |
static Device | setDefault (const Device &default_device) |
Additional Inherited Members | |
![]() | |
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.
Definition at line 2344 of file opencl.hpp.
|
inline |
Default constructor - initializes to nullptr.
Definition at line 2381 of file opencl.hpp.
|
inlineexplicit |
Constructor from cl_device_id.
This simply copies the device ID value, which is an inexpensive operation.
Definition at line 2387 of file opencl.hpp.
|
inline |
Wrapper for clCreateSubDevices().
Definition at line 2501 of file opencl.hpp.
|
inlinestatic |
Returns the first device on the default context.
Definition at line 2394 of file opencl.hpp.
|
inline |
Return a synchronized pair of host and device timestamps as seen by device. Use to correlate the clocks and get the host timer only using getHostTimer as a lower cost mechanism in between calls. The resolution of the host timer may be queried with the CL_PLATFORM_HOST_TIMER_RESOLUTION query. The resolution of the device timer may be queried with the CL_DEVICE_PROFILING_TIMER_RESOLUTION query.
Definition at line 2484 of file opencl.hpp.
|
inline |
Return the current value of the host clock as seen by the device. The resolution of the device timer may be queried with the CL_DEVICE_PROFILING_TIMER_RESOLUTION query.
Definition at line 2460 of file opencl.hpp.
|
inline |
Wrapper for clGetDeviceInfo().
Definition at line 2432 of file opencl.hpp.
|
inline |
Wrapper for clGetDeviceInfo() that returns by value.
Definition at line 2442 of file opencl.hpp.
|
inline |
Assignment operator from cl_device_id.
This simply copies the device ID value, which is an inexpensive operation.
Definition at line 2423 of file opencl.hpp.
Modify the default device to be used by subsequent operations. Will only set the default if no default was previously created.
Definition at line 2412 of file opencl.hpp.