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. 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... | |
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.
|
inline |
Add a tuning parameter to the config.
|
inline |
Returns the current profile.
|
inline |
Returns true if the tuning config has still not explored all its possibilities.
|
inline |
Returns true if the compilation/execution of the underlying profile has an undefined behavior.
|
inline |
Reset the config.
|
inline |
Update the parameters of the config.