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

OpenCL cl_device_id More...

#include <vsmc/utility/opencl.hpp>

Public Member Functions

 CLDevice (::cl_device_id ptr=nullptr)
 
std::vector< CLDevicecreat_sub_devices (const ::cl_device_partition_property *properties) const
 clCreateSubDevices More...
 
template<typename ParamType >
::cl_int get_info (::cl_device_info param_name, std::vector< ParamType > &param_value) const
 
template<typename ParamType >
::cl_int get_info (::cl_device_info param_name, ParamType &param_value) const
 
::cl_int get_info (::cl_device_info param_name, std::size_t param_value_size, void *param_value, std::size_t *param_value_size_ret) const
 clGetDeviceInfo More...
 
::cl_int get_info (::cl_device_info param_name, std::string &param_value) const
 
- Public Member Functions inherited from vsmc::CLBase<::cl_device_id, CLDevice >
 CLBase ()
 
pointer get () const
 
 operator bool () const
 
void reset (pointer ptr)
 
void swap (CLBase< ::cl_device_id, CLDevice > &other)
 
bool unique () const
 
long use_count () const
 

Static Public Member Functions

::cl_int release (::cl_device_id ptr)
 clReleaseDevice More...
 

Additional Inherited Members

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

Detailed Description

OpenCL cl_device_id

Definition at line 277 of file opencl.hpp.

Constructor & Destructor Documentation

vsmc::CLDevice::CLDevice ( ::cl_device_id  ptr = nullptr)
inlineexplicit

Definition at line 280 of file opencl.hpp.

Member Function Documentation

std::vector<CLDevice> vsmc::CLDevice::creat_sub_devices ( const ::cl_device_partition_property *  properties) const
inline

clCreateSubDevices

Definition at line 283 of file opencl.hpp.

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

clGetDeviceInfo

Definition at line 306 of file opencl.hpp.

::cl_int vsmc::CLDevice::get_info ( ::cl_device_info  param_name,
std::string &  param_value 
) const
inline

Definition at line 306 of file opencl.hpp.

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

Definition at line 306 of file opencl.hpp.

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

Definition at line 306 of file opencl.hpp.

::cl_int vsmc::CLDevice::release ( ::cl_device_id  ptr)
inlinestatic

clReleaseDevice

Definition at line 309 of file opencl.hpp.