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

#include <UnionCondition.h>

Inheritance diagram for ktt::UnionCondition:
ktt::StopCondition

Public Member Functions

 UnionCondition (const std::vector< std::shared_ptr< StopCondition > > &conditions)
 
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 which is fulfilled when any of the underlying conditions are met.

Constructor & Destructor Documentation

◆ UnionCondition()

ktt::UnionCondition::UnionCondition ( const std::vector< std::shared_ptr< StopCondition > > &  conditions)
explicit

Initializes union condition.

Parameters
conditionsUnderlying conditions which are all evaluated, the union is fulfilled when at least one condition is met.

Member Function Documentation

◆ GetStatusString()

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

Returns stop condition status string. Used for logging.

Returns
Stop condition status string.

Implements ktt::StopCondition.

◆ Initialize()

void ktt::UnionCondition::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::UnionCondition::IsFulfilled ( ) const
overridevirtual

Checks whether stop condition is fulfilled.

Returns
True if stop condition is fulfilled, false otherwise.

Implements ktt::StopCondition.

◆ Update()

void ktt::UnionCondition::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: