Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::ParetoResult Struct Reference

Result of Pareto analysis. More...

#include <pareto_explorer.hpp>

Public Member Functions

PrecisionConfig bestForAccuracy (double required_accuracy) const
 Get the best config for a given accuracy requirement (2D: minimize energy).
PrecisionConfig bestForEnergy (double max_energy_factor) const
 Get the best config for a given energy budget (2D: minimize error).
PrecisionConfig bestForBandwidth (double max_bandwidth_factor) const
 Get the best config for a given bandwidth constraint.
PrecisionConfig bestForConstraints (double required_accuracy, double max_energy_factor, double max_bandwidth_factor) const
 Get best config with combined constraints (3D).
PrecisionConfig bestForAlgorithm (double required_accuracy, const AlgorithmCharacteristics &algo) const
 Get best config for a specific algorithm profile Balances compute and memory energy based on arithmetic intensity.

Public Attributes

std::vector< PrecisionConfig > all_configs
std::vector< PrecisionConfig > frontier
std::vector< PrecisionConfig > frontier_3d
std::vector< PrecisionConfig > dominated

Detailed Description

Result of Pareto analysis.

Member Function Documentation

◆ bestForAccuracy()

PrecisionConfig sw::universal::ParetoResult::bestForAccuracy ( double required_accuracy) const
inline

Get the best config for a given accuracy requirement (2D: minimize energy).

◆ bestForAlgorithm()

PrecisionConfig sw::universal::ParetoResult::bestForAlgorithm ( double required_accuracy,
const AlgorithmCharacteristics & algo ) const
inline

Get best config for a specific algorithm profile Balances compute and memory energy based on arithmetic intensity.

◆ bestForBandwidth()

PrecisionConfig sw::universal::ParetoResult::bestForBandwidth ( double max_bandwidth_factor) const
inline

Get the best config for a given bandwidth constraint.

◆ bestForConstraints()

PrecisionConfig sw::universal::ParetoResult::bestForConstraints ( double required_accuracy,
double max_energy_factor,
double max_bandwidth_factor ) const
inline

Get best config with combined constraints (3D).

◆ bestForEnergy()

PrecisionConfig sw::universal::ParetoResult::bestForEnergy ( double max_energy_factor) const
inline

Get the best config for a given energy budget (2D: minimize error).

Member Data Documentation

◆ all_configs

std::vector<PrecisionConfig> sw::universal::ParetoResult::all_configs

◆ dominated

std::vector<PrecisionConfig> sw::universal::ParetoResult::dominated

◆ frontier

std::vector<PrecisionConfig> sw::universal::ParetoResult::frontier

◆ frontier_3d

std::vector<PrecisionConfig> sw::universal::ParetoResult::frontier_3d

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