vSMC
vSMC: Scalable Monte Carlo
Public Types | Public Member Functions | Static Public Member Functions | List of all members
vsmc::CLSetup< ID > Class Template Reference

Configure the default behavior of CLManager. More...

#include <vsmc/opencl/cl_setup.hpp>

Public Types

typedef ID id
 

Public Member Functions

bool check_device (const std::string &name) const
 
bool check_device_vendor (const std::string &name) const
 
bool check_platform (const std::string &name) const
 
bool default_device () const
 
bool default_device_type () const
 
bool default_device_vendor () const
 
const std::string & default_name () const
 Default string value of the device, vendor, platform names. More...
 
bool default_platform () const
 
void device (const std::string &name)
 
const std::string & device () const
 
bool device_type (const std::string &name)
 Set the device type using a string value. More...
 
void device_type (::cl_device_type type)
 
::cl_device_type device_type () const
 
void device_vendor (const std::string &name)
 
const std::string & device_vendor () const
 
void platform (const std::string &name)
 
const std::string & platform () const
 

Static Public Member Functions

static CLSetup< ID > & instance ()
 

Detailed Description

template<typename ID = CLDefault>
class vsmc::CLSetup< ID >

Configure the default behavior of CLManager.

Definition at line 43 of file cl_setup.hpp.

Member Typedef Documentation

template<typename ID = CLDefault>
typedef ID vsmc::CLSetup< ID >::id

Definition at line 47 of file cl_setup.hpp.

Member Function Documentation

template<typename ID = CLDefault>
bool vsmc::CLSetup< ID >::check_device ( const std::string &  name) const
inline

Definition at line 97 of file cl_setup.hpp.

template<typename ID = CLDefault>
bool vsmc::CLSetup< ID >::check_device_vendor ( const std::string &  name) const
inline

Definition at line 100 of file cl_setup.hpp.

template<typename ID = CLDefault>
bool vsmc::CLSetup< ID >::check_platform ( const std::string &  name) const
inline

Definition at line 103 of file cl_setup.hpp.

template<typename ID = CLDefault>
bool vsmc::CLSetup< ID >::default_device ( ) const
inline

Definition at line 93 of file cl_setup.hpp.

template<typename ID = CLDefault>
bool vsmc::CLSetup< ID >::default_device_type ( ) const
inline

Definition at line 90 of file cl_setup.hpp.

template<typename ID = CLDefault>
bool vsmc::CLSetup< ID >::default_device_vendor ( ) const
inline

Definition at line 94 of file cl_setup.hpp.

template<typename ID = CLDefault>
const std::string& vsmc::CLSetup< ID >::default_name ( ) const
inline

Default string value of the device, vendor, platform names.

Definition at line 57 of file cl_setup.hpp.

template<typename ID = CLDefault>
bool vsmc::CLSetup< ID >::default_platform ( ) const
inline

Definition at line 95 of file cl_setup.hpp.

template<typename ID = CLDefault>
void vsmc::CLSetup< ID >::device ( const std::string &  name)
inline

Definition at line 81 of file cl_setup.hpp.

template<typename ID = CLDefault>
const std::string& vsmc::CLSetup< ID >::device ( ) const
inline

Definition at line 86 of file cl_setup.hpp.

template<typename ID = CLDefault>
bool vsmc::CLSetup< ID >::device_type ( const std::string &  name)
inline

Set the device type using a string value.

Parameters
nameOne of "GPU", "CPU", "Accelerator". Other values are treated as setting the default device type
Returns
false if the default value is using, otherwise true

Definition at line 64 of file cl_setup.hpp.

template<typename ID = CLDefault>
void vsmc::CLSetup< ID >::device_type ( ::cl_device_type  type)
inline

Definition at line 80 of file cl_setup.hpp.

template<typename ID = CLDefault>
::cl_device_type vsmc::CLSetup< ID >::device_type ( ) const
inline

Definition at line 85 of file cl_setup.hpp.

template<typename ID = CLDefault>
void vsmc::CLSetup< ID >::device_vendor ( const std::string &  name)
inline

Definition at line 82 of file cl_setup.hpp.

template<typename ID = CLDefault>
const std::string& vsmc::CLSetup< ID >::device_vendor ( ) const
inline

Definition at line 87 of file cl_setup.hpp.

template<typename ID = CLDefault>
static CLSetup<ID>& vsmc::CLSetup< ID >::instance ( )
inlinestatic

Definition at line 49 of file cl_setup.hpp.

template<typename ID = CLDefault>
void vsmc::CLSetup< ID >::platform ( const std::string &  name)
inline

Definition at line 83 of file cl_setup.hpp.

template<typename ID = CLDefault>
const std::string& vsmc::CLSetup< ID >::platform ( ) const
inline

Definition at line 88 of file cl_setup.hpp.