ViennaCL - The Vienna Computing Library
1.5.2
|
Tuning configuration. More...
#include <autotune.hpp>
Public Types | |
typedef ConfigType | config_type |
typedef config_type::profile_type | profile_type |
Accessor for profile_type. | |
Public Member Functions | |
void | add_tuning_param (std::string const &name, std::vector< int > const &values) |
Add a tuning parameter to the config. | |
bool | has_next () const |
Returns true if the tuning config has still not explored all its possibilities. | |
void | update () |
Update the parameters of the config. | |
bool | is_invalid (viennacl::ocl::device const &dev) const |
Returns true if the compilation/execution of the underlying profile has an undefined behavior. | |
config_type::profile_type | get_current () |
Returns the current profile. | |
void | reset () |
Reset the config. |
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>
typedef ConfigType config_type |
typedef config_type::profile_type profile_type |
Accessor for profile_type.
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.