#include <KernelConfiguration.h>
Public Member Functions | |
| KernelConfiguration () | |
| KernelConfiguration (const std::vector< ParameterPair > &pairs) | |
| const std::vector< ParameterPair > & | GetPairs () const |
| bool | IsValid () const |
| std::string | GeneratePrefix () const |
| std::string | GetCompilerOptions () const |
| std::string | GetString () const |
| void | Merge (const KernelConfiguration &other) |
| std::vector< KernelConfiguration > | GenerateNeighbours (const std::string ¶meter, const std::vector< ParameterPair > &pairs) const |
| bool | operator== (const KernelConfiguration &other) const |
| bool | operator!= (const KernelConfiguration &other) const |
Class which describes single kernel tuning configuration.
| ktt::KernelConfiguration::KernelConfiguration | ( | ) |
Default constructor, creates invalid kernel configuration.
|
explicit |
Constructs kernel configuration with the specified parameter pairs.
| pairs | Values of tuning parameters for the configuration. |
| std::vector< KernelConfiguration > ktt::KernelConfiguration::GenerateNeighbours | ( | const std::string & | parameter, |
| const std::vector< ParameterPair > & | pairs | ||
| ) | const |
Generates neighbour configurations which differ in the specified parameter.
| parameter | Parameter which will be different in the generated configurations. All other parameters will remain identical. |
| pairs | All valid pairs for the previously specified parameter. |
| std::string ktt::KernelConfiguration::GeneratePrefix | ( | ) | const |
Generates kernel source preprocessor definitions from configuration. Parameters where IsCompilerParameter() is true are excluded.
| std::string ktt::KernelConfiguration::GetCompilerOptions | ( | ) | const |
Returns compiler options for parameters where IsCompilerParameter() is true.
| const std::vector< ParameterPair > & ktt::KernelConfiguration::GetPairs | ( | ) | const |
Returns values of tuning parameters for kernel configuration.
| std::string ktt::KernelConfiguration::GetString | ( | ) | const |
Converts configuration to string.
| bool ktt::KernelConfiguration::IsValid | ( | ) | const |
Checks whether kernel configuration is valid.
| void ktt::KernelConfiguration::Merge | ( | const KernelConfiguration & | other | ) |
Merges two configurations, adding paramater values from the specified configuration into this one. If the configurations share some parameters, the values of parameters from this configuration are preserved.
| other | Configuration that will be merged into this one. |
| bool ktt::KernelConfiguration::operator!= | ( | const KernelConfiguration & | other | ) | const |
Checks whether kernel configuration is equal to other. I.e., it has different parameter pairs or the pairs have different values.
| other | Comparison target. |
| bool ktt::KernelConfiguration::operator== | ( | const KernelConfiguration & | other | ) | const |
Checks whether kernel configuration is equal to other. I.e., it has the same parameter pairs with the same values.
| other | Comparison target. |