OpenCL cl_mem
More...
#include <vsmc/utility/opencl.hpp>
|
| | CLMemory (::cl_mem ptr=nullptr) |
| |
| | CLMemory (const CLContext &context,::cl_mem_flags flags, std::size_t size, void *host_ptr=nullptr) |
| | clCreateBuffer More...
|
| |
| ::cl_int | get_info (::cl_mem_info param_name, std::string ¶m_value) const |
| |
| template<typename ParamType > |
| ::cl_int | get_info (::cl_mem_info param_name, ParamType ¶m_value) const |
| |
| ::cl_int | get_info (::cl_mem_info param_name, std::size_t param_value_size, void *param_value, std::size_t *param_value_size_ret) const |
| | clGetMemObjectInfo More...
|
| |
| template<typename ParamType > |
| ::cl_int | get_info (::cl_mem_info param_name, std::vector< ParamType > ¶m_value) const |
| |
| CLMemory | sub_buffer (::cl_mem_flags flags,::cl_buffer_create_type buffer_create_type, const void *buffer_create_info=nullptr) |
| | clCreateSubBuffer More...
|
| |
| | CLBase () |
| |
| pointer | get () const |
| |
| | operator bool () const |
| |
| void | reset (pointer ptr) |
| |
| void | swap (CLBase< ::cl_mem, CLMemory > &other) |
| |
| bool | unique () const |
| |
| long | use_count () const |
| |
OpenCL cl_mem
Definition at line 545 of file opencl.hpp.
| vsmc::CLMemory::CLMemory |
( |
::cl_mem |
ptr = nullptr | ) |
|
|
inlineexplicit |
| vsmc::CLMemory::CLMemory |
( |
const CLContext & |
context, |
|
|
::cl_mem_flags |
flags, |
|
|
std::size_t |
size, |
|
|
void * |
host_ptr = nullptr |
|
) |
| |
|
inline |
| ::cl_int vsmc::CLMemory::get_info |
( |
::cl_mem_info |
param_name, |
|
|
std::size_t |
param_value_size, |
|
|
void * |
param_value, |
|
|
std::size_t * |
param_value_size_ret |
|
) |
| const |
|
inline |
template<typename ParamType >
| ::cl_int vsmc::CLMemory::get_info |
( |
::cl_mem_info |
param_name, |
|
|
std::vector< ParamType > & |
param_value |
|
) |
| const |
|
inline |
| ::cl_int vsmc::CLMemory::get_info |
( |
::cl_mem_info |
param_name, |
|
|
std::string & |
param_value |
|
) |
| const |
|
inline |
template<typename ParamType >
| ::cl_int vsmc::CLMemory::get_info |
( |
::cl_mem_info |
param_name, |
|
|
ParamType & |
param_value |
|
) |
| const |
|
inline |
| ::cl_int vsmc::CLMemory::release |
( |
::cl_mem |
ptr | ) |
|
|
inlinestatic |
| CLMemory vsmc::CLMemory::sub_buffer |
( |
::cl_mem_flags |
flags, |
|
|
::cl_buffer_create_type |
buffer_create_type, |
|
|
const void * |
buffer_create_info = nullptr |
|
) |
| |
|
inline |