ViennaCL - The Vienna Computing Library  1.5.2
Public Types | Public Member Functions
tuning_config< ConfigType > Class Template Reference

Tuning configuration. More...

#include <autotune.hpp>

Public Types

typedef ConfigType config_type
 
typedef config_type::profile_type profile_type
 Accessor for profile_type. More...
 

Public Member Functions

void add_tuning_param (std::string const &name, std::vector< int > const &values)
 Add a tuning parameter to the config. More...
 
bool has_next () const
 Returns true if the tuning config has still not explored all its possibilities. More...
 
void update ()
 Update the parameters of the config. More...
 
bool is_invalid (viennacl::ocl::device const &dev) const
 Returns true if the compilation/execution of the underlying profile has an undefined behavior. More...
 
config_type::profile_type get_current ()
 Returns the current profile. More...
 
void reset ()
 Reset the config. More...
 

Detailed Description

template<class ConfigType>
class viennacl::generator::autotune::tuning_config< ConfigType >

Tuning configuration.

ConfigType must have a profile_type typedef ConfigType must implement is_invalid that returns whether or not a given parameter is invalid ConfigType must implement create_profile that creates a profile_type given a set of parameters

Parameters are stored in a std::map<std::string, viennacl::generator::autotune::tuning_param>

Member Typedef Documentation

typedef ConfigType config_type
typedef config_type::profile_type profile_type

Accessor for profile_type.

Member Function Documentation

void add_tuning_param ( std::string const &  name,
std::vector< int > const &  values 
)
inline

Add a tuning parameter to the config.

config_type::profile_type get_current ( )
inline

Returns the current profile.

bool has_next ( ) const
inline

Returns true if the tuning config has still not explored all its possibilities.

bool is_invalid ( viennacl::ocl::device const &  dev) const
inline

Returns true if the compilation/execution of the underlying profile has an undefined behavior.

void reset ( )
inline

Reset the config.

void update ( )
inline

Update the parameters of the config.


The documentation for this class was generated from the following file: