vSMC  v3.0.0
Scalable Monte Carlo
Public Member Functions | Static Public Member Functions | List of all members
vsmc::CLCommandQueue Class Reference

OpenCL cl_command_queue More...

#include <vsmc/utility/opencl.hpp>

Public Member Functions

 CLCommandQueue (::cl_command_queue ptr=nullptr)
 
 CLCommandQueue (const CLContext &context, const CLDevice &device,::cl_command_queue_properties properties=0)
 clCreateCommandQueue More...
 
::cl_int enqueue_barrier_with_wait_list (::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueBarrierWithWaitList More...
 
::cl_int enqueue_copy_buffer (const CLMemory &src_buffer, const CLMemory &dst_buffer, std::size_t src_offset, std::size_t dst_offset, std::size_t size,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueCopyBuffer More...
 
::cl_int enqueue_copy_buffer_rect (const CLMemory &src_buffer, const CLMemory &dst_buffer, const std::array< std::size_t, 3 > &src_origin, const std::array< std::size_t, 3 > &dst_origin, const std::array< std::size_t, 3 > &region, std::size_t src_row_pitch, std::size_t src_slice_pitch, std::size_t dst_row_pitch, std::size_t dst_slice_pitch,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueCopyBufferRect More...
 
::cl_int enqueue_fill_buffer (const CLMemory &buffer, const void *pattern, std::size_t pattern_size, std::size_t offset, std::size_t size,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueFillBuffer More...
 
void * enqueue_map_buffer (const CLMemory &buffer,::cl_bool blocking_map,::cl_map_flags map_flags, std::size_t offset, std::size_t size,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueMapBuffer More...
 
::cl_int enqueue_marker_with_wait_list (::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueMarkerWithWaitList More...
 
::cl_int enqueue_migrate_mem_objects (::cl_uint num_mem_objects, const CLMemory *mem_objects,::cl_mem_migration_flags flags,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueMigrateMemObjects More...
 
::cl_int enqueue_nd_range_kernel (const CLKernel &kernel,::cl_uint work_dim, const CLNDRange &global_work_offset, const CLNDRange &global_work_size, const CLNDRange &local_work_size,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueNDRangeKernel More...
 
::cl_int enqueue_read_buffer (const CLMemory &buffer,::cl_bool blocking_read, std::size_t offset, std::size_t size, void *ptr,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueReadBuffer More...
 
::cl_int enqueue_read_buffer_rect (const CLMemory &buffer,::cl_bool blocking_read, const std::array< std::size_t, 3 > &buffer_origin, const std::array< std::size_t, 3 > &host_origin, const std::array< std::size_t, 3 > &region, std::size_t buffer_row_pitch, std::size_t buffer_slice_pitch, std::size_t host_row_pitch, std::size_t host_slice_pitch, void *ptr,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueReadBufferRect More...
 
::cl_int enqueue_unmap_mem_object (const CLMemory &memobj, void *mapped_ptr,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueUnmapMemObject More...
 
::cl_int enqueue_write_buffer (const CLMemory &buffer,::cl_bool blocking_write, std::size_t offset, std::size_t size, void *ptr,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueWriteBuffer More...
 
::cl_int enqueue_write_buffer_rect (const CLMemory &buffer,::cl_bool blocking_write, const std::array< std::size_t, 3 > &buffer_origin, const std::array< std::size_t, 3 > &host_origin, const std::array< std::size_t, 3 > &region, std::size_t buffer_row_pitch, std::size_t buffer_slice_pitch, std::size_t host_row_pitch, std::size_t host_slice_pitch, const void *ptr,::cl_uint num_events_in_wait_list=0, const CLEvent *event_wait_list=nullptr, CLEvent *event=nullptr) const
 clEnqueueWriteBufferRect More...
 
::cl_int finish () const
 clFinish More...
 
::cl_int flush () const
 clFlush More...
 
CLContext get_context () const
 CL_QUEUE_CONTEXT More...
 
CLDevice get_device () const
 CL_QUEUE_DEVICE More...
 
::cl_int get_info (::cl_command_queue_info param_name, std::string &param_value) const
 
template<typename ParamType >
::cl_int get_info (::cl_command_queue_info param_name, ParamType &param_value) const
 
::cl_int get_info (::cl_command_queue_info param_name, std::size_t param_value_size, void *param_value, std::size_t *param_value_size_ret) const
 clGetCommandQueueInfo More...
 
template<typename ParamType >
::cl_int get_info (::cl_command_queue_info param_name, std::vector< ParamType > &param_value) const
 
- Public Member Functions inherited from vsmc::CLBase<::cl_command_queue, CLCommandQueue >
 CLBase ()
 
pointer get () const
 
 operator bool () const
 
void reset (pointer ptr)
 
void swap (CLBase< ::cl_command_queue, CLCommandQueue > &other)
 
bool unique () const
 
long use_count () const
 

Static Public Member Functions

::cl_int release (::cl_command_queue ptr)
 clReleaseCommandQueue More...
 

Additional Inherited Members

- Public Types inherited from vsmc::CLBase<::cl_command_queue, CLCommandQueue >
using element_type = typename std::remove_pointer< ::cl_command_queue >::type
 
using pointer = ::cl_command_queue
 
- Protected Member Functions inherited from vsmc::CLBase<::cl_command_queue, CLCommandQueue >
void reset_ptr (pointer ptr)
 

Detailed Description

OpenCL cl_command_queue

Definition at line 1041 of file opencl.hpp.

Constructor & Destructor Documentation

vsmc::CLCommandQueue::CLCommandQueue ( ::cl_command_queue  ptr = nullptr)
inlineexplicit

Definition at line 1044 of file opencl.hpp.

vsmc::CLCommandQueue::CLCommandQueue ( const CLContext context,
const CLDevice device,
::cl_command_queue_properties  properties = 0 
)
inline

clCreateCommandQueue

Definition at line 1050 of file opencl.hpp.

Member Function Documentation

::cl_int vsmc::CLCommandQueue::enqueue_barrier_with_wait_list ( ::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueBarrierWithWaitList

Definition at line 1369 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_copy_buffer ( const CLMemory src_buffer,
const CLMemory dst_buffer,
std::size_t  src_offset,
std::size_t  dst_offset,
std::size_t  size,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueCopyBuffer

Definition at line 1208 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_copy_buffer_rect ( const CLMemory src_buffer,
const CLMemory dst_buffer,
const std::array< std::size_t, 3 > &  src_origin,
const std::array< std::size_t, 3 > &  dst_origin,
const std::array< std::size_t, 3 > &  region,
std::size_t  src_row_pitch,
std::size_t  src_slice_pitch,
std::size_t  dst_row_pitch,
std::size_t  dst_slice_pitch,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueCopyBufferRect

Definition at line 1231 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_fill_buffer ( const CLMemory buffer,
const void *  pattern,
std::size_t  pattern_size,
std::size_t  offset,
std::size_t  size,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueFillBuffer

Definition at line 1259 of file opencl.hpp.

void* vsmc::CLCommandQueue::enqueue_map_buffer ( const CLMemory buffer,
::cl_bool  blocking_map,
::cl_map_flags  map_flags,
std::size_t  offset,
std::size_t  size,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueMapBuffer

Definition at line 1281 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_marker_with_wait_list ( ::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueMarkerWithWaitList

Definition at line 1348 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_migrate_mem_objects ( ::cl_uint  num_mem_objects,
const CLMemory mem_objects,
::cl_mem_migration_flags  flags,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueMigrateMemObjects

Definition at line 1325 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_nd_range_kernel ( const CLKernel kernel,
::cl_uint  work_dim,
const CLNDRange global_work_offset,
const CLNDRange global_work_size,
const CLNDRange local_work_size,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueNDRangeKernel

Definition at line 1079 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_read_buffer ( const CLMemory buffer,
::cl_bool  blocking_read,
std::size_t  offset,
std::size_t  size,
void *  ptr,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueReadBuffer

Definition at line 1104 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_read_buffer_rect ( const CLMemory buffer,
::cl_bool  blocking_read,
const std::array< std::size_t, 3 > &  buffer_origin,
const std::array< std::size_t, 3 > &  host_origin,
const std::array< std::size_t, 3 > &  region,
std::size_t  buffer_row_pitch,
std::size_t  buffer_slice_pitch,
std::size_t  host_row_pitch,
std::size_t  host_slice_pitch,
void *  ptr,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueReadBufferRect

Definition at line 1148 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_unmap_mem_object ( const CLMemory memobj,
void *  mapped_ptr,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueUnmapMemObject

Definition at line 1304 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_write_buffer ( const CLMemory buffer,
::cl_bool  blocking_write,
std::size_t  offset,
std::size_t  size,
void *  ptr,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueWriteBuffer

Definition at line 1126 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::enqueue_write_buffer_rect ( const CLMemory buffer,
::cl_bool  blocking_write,
const std::array< std::size_t, 3 > &  buffer_origin,
const std::array< std::size_t, 3 > &  host_origin,
const std::array< std::size_t, 3 > &  region,
std::size_t  buffer_row_pitch,
std::size_t  buffer_slice_pitch,
std::size_t  host_row_pitch,
std::size_t  host_slice_pitch,
const void *  ptr,
::cl_uint  num_events_in_wait_list = 0,
const CLEvent event_wait_list = nullptr,
CLEvent event = nullptr 
) const
inline

clEnqueueWriteBufferRect

Definition at line 1178 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::finish ( ) const
inline

clFinish

Definition at line 1397 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::flush ( ) const
inline

clFlush

Definition at line 1390 of file opencl.hpp.

CLContext vsmc::CLCommandQueue::get_context ( ) const
inline

CL_QUEUE_CONTEXT

Definition at line 1063 of file opencl.hpp.

CLDevice vsmc::CLCommandQueue::get_device ( ) const
inline

CL_QUEUE_DEVICE

Definition at line 1071 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::get_info ( ::cl_command_queue_info  param_name,
std::string &  param_value 
) const
inline

Definition at line 1405 of file opencl.hpp.

template<typename ParamType >
::cl_int vsmc::CLCommandQueue::get_info ( ::cl_command_queue_info  param_name,
std::vector< ParamType > &  param_value 
) const
inline

Definition at line 1405 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::get_info ( ::cl_command_queue_info  param_name,
std::size_t  param_value_size,
void *  param_value,
std::size_t *  param_value_size_ret 
) const
inline

clGetCommandQueueInfo

Definition at line 1405 of file opencl.hpp.

template<typename ParamType >
::cl_int vsmc::CLCommandQueue::get_info ( ::cl_command_queue_info  param_name,
ParamType &  param_value 
) const
inline

Definition at line 1405 of file opencl.hpp.

::cl_int vsmc::CLCommandQueue::release ( ::cl_command_queue  ptr)
inlinestatic

clReleaseCommandQueue

Definition at line 1408 of file opencl.hpp.