Kernel Tuning Toolkit 2.3
 
Loading...
Searching...
No Matches
ktt::ConfigurationDuration Class Reference

#include <ConfigurationDuration.h>

Inheritance diagram for ktt::ConfigurationDuration:
ktt::StopCondition

Public Member Functions

 ConfigurationDuration (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
 

Detailed Description

Class which implements stop condition based on computation duration of a configuration.

Constructor & Destructor Documentation

◆ ConfigurationDuration()

ktt::ConfigurationDuration::ConfigurationDuration ( const double  duration)
explicit

Initializes configuration duration condition.

Parameters
durationCondition will be fulfilled when configuration with duration below the specified amount is found. The duration is specified in milliseconds.

Member Function Documentation

◆ GetStatusString()

std::string ktt::ConfigurationDuration::GetStatusString ( ) const
overridevirtual

Returns stop condition status string. Used for logging.

Returns
Stop condition status string.

Implements ktt::StopCondition.

◆ Initialize()

void ktt::ConfigurationDuration::Initialize ( const uint64_t  configurationsCount)
overridevirtual

Performs initialization of stop condition. Called right before the tuning process begins.

Parameters
configurationsCountTotal count of generated configurations for the tuned kernel.

Implements ktt::StopCondition.

◆ IsFulfilled()

bool ktt::ConfigurationDuration::IsFulfilled ( ) const
overridevirtual

Checks whether stop condition is fulfilled.

Returns
True if stop condition is fulfilled, false otherwise.

Implements ktt::StopCondition.

◆ Update()

void ktt::ConfigurationDuration::Update ( const KernelResult result)
overridevirtual

Performs update of stop condition. Called after each tested configuration.

Parameters
resultResult from the last tested configuration. See KernelResult for more information.

Implements ktt::StopCondition.


The documentation for this class was generated from the following file: