OpenCL cl_context
More...
#include <vsmc/utility/opencl.hpp>
|
using | pfn_notify_type = void(CL_CALLBACK *)(const char *, const void *, std::size_t, void *) |
|
using | element_type = typename std::remove_pointer< ::cl_context >::type |
|
using | pointer = ::cl_context |
|
|
| CLContext (::cl_context ptr=nullptr) |
|
| CLContext (const CLContextProperties &properties,::cl_uint num_devices, const CLDevice *devices, pfn_notify_type pfn_notify=nullptr, void *user_data=nullptr) |
| clCreateContext More...
|
|
| CLContext (const CLContextProperties &properties,::cl_device_type device_type, pfn_notify_type pfn_notify=nullptr, void *user_data=nullptr) |
| clCreateContextFromType More...
|
|
std::vector< CLDevice > | get_device () const |
| CL_CONTEXT_DEVICES More...
|
|
::cl_int | get_info (::cl_context_info param_name, std::size_t param_value_size, void *param_value, std::size_t *param_value_size_ret) const |
| clGetContextInfo More...
|
|
::cl_int | get_info (::cl_context_info param_name, std::string ¶m_value) const |
|
template<typename ParamType > |
::cl_int | get_info (::cl_context_info param_name, std::vector< ParamType > ¶m_value) const |
|
template<typename ParamType > |
::cl_int | get_info (::cl_context_info param_name, ParamType ¶m_value) const |
|
| CLBase () |
|
pointer | get () const |
|
| operator bool () const |
|
void | reset (pointer ptr) |
|
void | swap (CLBase< ::cl_context, CLContext > &other) |
|
bool | unique () const |
|
long | use_count () const |
|
OpenCL cl_context
Definition at line 406 of file opencl.hpp.
vsmc::CLContext::CLContext |
( |
::cl_context |
ptr = nullptr | ) |
|
|
inlineexplicit |
clCreateContextFromType
Definition at line 430 of file opencl.hpp.
std::vector<CLDevice> vsmc::CLContext::get_device |
( |
| ) |
const |
|
inline |
::cl_int vsmc::CLContext::get_info |
( |
::cl_context_info |
param_name, |
|
|
std::size_t |
param_value_size, |
|
|
void * |
param_value, |
|
|
std::size_t * |
param_value_size_ret |
|
) |
| const |
|
inline |
::cl_int vsmc::CLContext::get_info |
( |
::cl_context_info |
param_name, |
|
|
std::string & |
param_value |
|
) |
| const |
|
inline |
template<typename ParamType >
::cl_int vsmc::CLContext::get_info |
( |
::cl_context_info |
param_name, |
|
|
std::vector< ParamType > & |
param_value |
|
) |
| const |
|
inline |
template<typename ParamType >
::cl_int vsmc::CLContext::get_info |
( |
::cl_context_info |
param_name, |
|
|
ParamType & |
param_value |
|
) |
| const |
|
inline |
::cl_int vsmc::CLContext::release |
( |
::cl_context |
ptr | ) |
|
|
inlinestatic |