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

OpenCL cl_event More...

#include <vsmc/utility/opencl.hpp>

Public Member Functions

 CLEvent (::cl_event ptr=nullptr)
 
 CLEvent (const CLContext &context)
 clCreateUserEvent More...
 
CLCommandQueue get_command_queue () const
 CL_EVENT_COMMAND_QUEUE More...
 
CLContext get_context () const
 CL_EVENT_CONTEXT More...
 
template<typename ParamType >
::cl_int get_info (::cl_event_info param_name, ParamType &param_value) const
 
template<typename ParamType >
::cl_int get_info (::cl_event_info param_name, std::vector< ParamType > &param_value) const
 
::cl_int get_info (::cl_event_info param_name, std::string &param_value) const
 
::cl_int get_info (::cl_event_info param_name, std::size_t param_value_size, void *param_value, std::size_t *param_value_size_ret) const
 clGetEventInfo More...
 
::cl_int get_profiling_info (::cl_profiling_info param_name, std::string &param_value) const
 
::cl_int get_profiling_info (::cl_profiling_info param_name, std::size_t param_value_size, void *param_value, std::size_t *param_value_size_ret) const
 clGetEventProfilingInfo More...
 
template<typename ParamType >
::cl_int get_profiling_info (::cl_profiling_info param_name, std::vector< ParamType > &param_value) const
 
template<typename ParamType >
::cl_int get_profiling_info (::cl_profiling_info param_name, ParamType &param_value) const
 
::cl_int set_status (::cl_int execution_status) const
 clSetUserEventStatus More...
 
::cl_int wait () const
 clWaitForEvents More...
 
- Public Member Functions inherited from vsmc::CLBase<::cl_event, CLEvent >
 CLBase ()
 
pointer get () const
 
 operator bool () const
 
void reset (pointer ptr)
 
void swap (CLBase< ::cl_event, CLEvent > &other)
 
bool unique () const
 
long use_count () const
 

Static Public Member Functions

::cl_int release (::cl_event ptr)
 clReleaseEvent More...
 
::cl_int wait (::cl_uint num_events, CLEvent *events)
 clWaitForEvents More...
 

Additional Inherited Members

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

Detailed Description

OpenCL cl_event

Definition at line 470 of file opencl.hpp.

Constructor & Destructor Documentation

vsmc::CLEvent::CLEvent ( ::cl_event  ptr = nullptr)
inlineexplicit

Definition at line 473 of file opencl.hpp.

vsmc::CLEvent::CLEvent ( const CLContext context)
inlineexplicit

clCreateUserEvent

Definition at line 476 of file opencl.hpp.

Member Function Documentation

CLCommandQueue vsmc::CLEvent::get_command_queue ( ) const
inline

CL_EVENT_COMMAND_QUEUE

Definition at line 1421 of file opencl.hpp.

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

CL_EVENT_CONTEXT

Definition at line 495 of file opencl.hpp.

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

Definition at line 526 of file opencl.hpp.

::cl_int vsmc::CLEvent::get_info ( ::cl_event_info  param_name,
std::string &  param_value 
) const
inline

Definition at line 526 of file opencl.hpp.

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

clGetEventInfo

Definition at line 526 of file opencl.hpp.

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

Definition at line 526 of file opencl.hpp.

::cl_int vsmc::CLEvent::get_profiling_info ( ::cl_profiling_info  param_name,
std::string &  param_value 
) const
inline

Definition at line 530 of file opencl.hpp.

::cl_int vsmc::CLEvent::get_profiling_info ( ::cl_profiling_info  param_name,
std::size_t  param_value_size,
void *  param_value,
std::size_t *  param_value_size_ret 
) const
inline

clGetEventProfilingInfo

Definition at line 530 of file opencl.hpp.

template<typename ParamType >
::cl_int vsmc::CLEvent::get_profiling_info ( ::cl_profiling_info  param_name,
ParamType &  param_value 
) const
inline

Definition at line 530 of file opencl.hpp.

template<typename ParamType >
::cl_int vsmc::CLEvent::get_profiling_info ( ::cl_profiling_info  param_name,
std::vector< ParamType > &  param_value 
) const
inline

Definition at line 530 of file opencl.hpp.

::cl_int vsmc::CLEvent::release ( ::cl_event  ptr)
inlinestatic

clReleaseEvent

Definition at line 533 of file opencl.hpp.

::cl_int vsmc::CLEvent::set_status ( ::cl_int  execution_status) const
inline

clSetUserEventStatus

Definition at line 487 of file opencl.hpp.

::cl_int vsmc::CLEvent::wait ( ) const
inline

clWaitForEvents

Definition at line 506 of file opencl.hpp.

::cl_int vsmc::CLEvent::wait ( ::cl_uint  num_events,
CLEvent events 
)
inlinestatic

clWaitForEvents

Definition at line 514 of file opencl.hpp.