#include <FailureFraction.h>
Public Member Functions | |
| FailureFraction (const double fraction, const uint64_t minCount=0) | |
| 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 failed kernel runs.
|
explicit |
Initializes failure fraction condition.
| fraction | Fraction of failed kernel runs before condition is fulfilled. The valid range of values is 0.0 - 1.0 corresponding to 0% - 100% of explored configurations. |
| minCount | The number of configurations that is always explored |
|
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.