#include <ConfigurationFraction.h>
Public Member Functions | |
| ConfigurationFraction (const double fraction) | |
| bool | IsFulfilled () const override |
| void | Initialize (const uint64_t configurationsCount) override |
| void | Update (const KernelResult &result) override |
| std::string | GetStatusString () const override |
Public Member Functions inherited from ktt::StopCondition | |
| virtual | ~StopCondition ()=default |
Class which implements stop condition based on fraction of explored configurations.
|
explicit |
Initializes configuration fraction condition.
| fraction | Fraction of configurations which will be tested before condition is fulfilled. The valid range of values is 0.0 - 1.0 corresponding to 0% - 100% of configurations. |
|
overridevirtual |
Returns stop condition status string. Used for logging.
Implements ktt::StopCondition.
|
overridevirtual |
Performs initialization of stop condition. Called right before the tuning process begins.
| configurationsCount | Total count of generated configurations for the tuned kernel. |
Implements ktt::StopCondition.
|
overridevirtual |
Checks whether stop condition is fulfilled.
Implements ktt::StopCondition.
|
overridevirtual |
Performs update of stop condition. Called after each tested configuration.
| result | Result from the last tested configuration. See KernelResult for more information. |
Implements ktt::StopCondition.