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

OpenCL cl_platform_id More...

#include <vsmc/utility/opencl.hpp>

Public Member Functions

 CLPlatform (::cl_platform_id ptr=nullptr)
 
std::vector< CLDeviceget_device (::cl_device_type device_type) const
 clGetDeviceIDs More...
 
::cl_int get_info (::cl_platform_info param_name, std::string &param_value) const
 
template<typename ParamType >
::cl_int get_info (::cl_platform_info param_name, ParamType &param_value) const
 
::cl_int get_info (::cl_platform_info param_name, std::size_t param_value_size, void *param_value, std::size_t *param_value_size_ret) const
 clGetPlatformInfo More...
 
template<typename ParamType >
::cl_int get_info (::cl_platform_info param_name, std::vector< ParamType > &param_value) const
 
::cl_int unload_compiler () const
 clUnloadPlatformCompiler More...
 
- Public Member Functions inherited from vsmc::CLBase<::cl_platform_id, CLPlatform >
 CLBase ()
 
pointer get () const
 
 operator bool () const
 
void reset (pointer ptr)
 
void swap (CLBase< ::cl_platform_id, CLPlatform > &other)
 
bool unique () const
 
long use_count () const
 

Static Public Member Functions

::cl_int release (::cl_platform_id)
 

Additional Inherited Members

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

Detailed Description

OpenCL cl_platform_id

Definition at line 321 of file opencl.hpp.

Constructor & Destructor Documentation

vsmc::CLPlatform::CLPlatform ( ::cl_platform_id  ptr = nullptr)
inlineexplicit

Definition at line 324 of file opencl.hpp.

Member Function Documentation

std::vector<CLDevice> vsmc::CLPlatform::get_device ( ::cl_device_type  device_type) const
inline

clGetDeviceIDs

Definition at line 327 of file opencl.hpp.

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

Definition at line 354 of file opencl.hpp.

::cl_int vsmc::CLPlatform::get_info ( ::cl_platform_info  param_name,
std::string &  param_value 
) const
inline

Definition at line 354 of file opencl.hpp.

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

Definition at line 354 of file opencl.hpp.

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

clGetPlatformInfo

Definition at line 354 of file opencl.hpp.

::cl_int vsmc::CLPlatform::release ( ::cl_platform_id  )
inlinestatic

Definition at line 356 of file opencl.hpp.

::cl_int vsmc::CLPlatform::unload_compiler ( ) const
inline

clUnloadPlatformCompiler

Definition at line 347 of file opencl.hpp.