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::ModelValidator Class Reference

Model validation utility Compares model predictions to RAPL measurements. More...

#include <pgo_energy.hpp>

Classes

struct  ValidationResult
 Validate model for a specific operation. More...

Public Member Functions

 ModelValidator (const energy::EnergyCostModel &model=energy::getDefaultModel())
std::vector< ValidationResult > validateAll (double tolerance_percent=50.0)
 Run validation benchmark for all operations and bit widths.
void report (std::ostream &ostr, const std::vector< ValidationResult > &results, double tolerance_percent=50.0)
 Generate validation report.

Detailed Description

Model validation utility Compares model predictions to RAPL measurements.

Constructor & Destructor Documentation

◆ ModelValidator()

sw::universal::ModelValidator::ModelValidator ( const energy::EnergyCostModel & model = energy::getDefaultModel())
inlineexplicit

Member Function Documentation

◆ report()

void sw::universal::ModelValidator::report ( std::ostream & ostr,
const std::vector< ValidationResult > & results,
double tolerance_percent = 50.0 )
inline

Generate validation report.

◆ validateAll()

std::vector< ValidationResult > sw::universal::ModelValidator::validateAll ( double tolerance_percent = 50.0)
inline

Run validation benchmark for all operations and bit widths.


The documentation for this class was generated from the following file:
  • /home/runner/work/universal/universal/include/sw/universal/utility/pgo_energy.hpp