#include <TuningDuration.h>
Public Member Functions | |
| TuningDuration (const double duration) | |
| 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 total tuning duration.
|
explicit |
Initializes tuning duration condition.
| duration | Condition will be fulfilled when the specified amount of time has passed. The measurement starts when kernel tuning begins. Duration is specified in seconds. |
|
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.