Explorer for Pareto-optimal precision configurations.
More...
#include <pareto_explorer.hpp>
|
| | ParetoExplorer () |
| void | addConfiguration (const PrecisionConfig &config) |
| | Add a custom configuration.
|
| void | addConfiguration (const std::string &name, int bits, double accuracy, double energy_factor, double memory_factor=0.0) |
| | Add a configuration with parameters.
|
| void | clear () |
| | Clear all configurations.
|
| void | resetToStandard () |
| | Reset to standard configurations.
|
| const std::vector< PrecisionConfig > & | configurations () const |
| | Get all configurations.
|
| ParetoResult | computeFrontier () const |
| | Compute the 2D Pareto frontier (accuracy vs energy).
|
| ParetoResult | computeFrontier3D () const |
| | Compute the 3D Pareto frontier (accuracy vs energy vs bandwidth).
|
| PrecisionConfig | recommendForAccuracy (double required_accuracy) const |
| | Find best configuration for given accuracy requirement (2D).
|
| PrecisionConfig | recommendForEnergy (double max_energy_factor) const |
| | Find best configuration for given energy budget (2D).
|
| PrecisionConfig | recommendForBandwidth (double max_bandwidth_factor) const |
| | Find best configuration for given bandwidth constraint (3D).
|
| PrecisionConfig | recommendWithConstraints (double required_accuracy, double max_energy_factor, double max_bandwidth_factor) const |
| | Find best configuration with combined constraints (3D).
|
| PrecisionConfig | recommendForAlgorithm (double required_accuracy, const AlgorithmCharacteristics &algo) const |
| | Find best configuration for a specific algorithm profile This is the recommended method for memory-aware selection.
|
| void | report (std::ostream &ostr) const |
| | Generate report.
|
| void | plotFrontier (std::ostream &ostr, int width=60, int height=20) const |
| | Plot frontier as ASCII art (2D: accuracy vs energy).
|
| void | plotBandwidth (std::ostream &ostr, int width=60, int height=15) const |
| | Plot bandwidth dimension (bandwidth vs energy).
|
| void | rooflineAnalysis (std::ostream &ostr, double system_bandwidth_gbps=100.0) const |
| | Generate roofline-style analysis for algorithm selection.
|
|
| static AlgorithmCharacteristics | profileAlgorithm (const std::string &name, uint64_t total_ops, uint64_t total_bytes, double bandwidth_gbps=100.0) |
| | Create algorithm profile from characteristics.
|
| static AlgorithmCharacteristics | profileDotProduct (uint64_t n, int elem_bytes=4) |
| | Common algorithm profiles.
|
| static AlgorithmCharacteristics | profileGEMM (uint64_t M, uint64_t N, uint64_t K, int elem_bytes=4) |
| static AlgorithmCharacteristics | profileConv2D (uint64_t H, uint64_t W, uint64_t C_in, uint64_t C_out, uint64_t K, int elem_bytes=4) |
Explorer for Pareto-optimal precision configurations.
◆ ParetoExplorer()
| sw::universal::ParetoExplorer::ParetoExplorer |
( |
| ) |
|
|
inline |
◆ addConfiguration() [1/2]
| void sw::universal::ParetoExplorer::addConfiguration |
( |
const PrecisionConfig & | config | ) |
|
|
inline |
Add a custom configuration.
◆ addConfiguration() [2/2]
| void sw::universal::ParetoExplorer::addConfiguration |
( |
const std::string & | name, |
|
|
int | bits, |
|
|
double | accuracy, |
|
|
double | energy_factor, |
|
|
double | memory_factor = 0.0 ) |
|
inline |
Add a configuration with parameters.
◆ clear()
| void sw::universal::ParetoExplorer::clear |
( |
| ) |
|
|
inline |
Clear all configurations.
◆ computeFrontier()
| ParetoResult sw::universal::ParetoExplorer::computeFrontier |
( |
| ) |
const |
|
inline |
Compute the 2D Pareto frontier (accuracy vs energy).
◆ computeFrontier3D()
| ParetoResult sw::universal::ParetoExplorer::computeFrontier3D |
( |
| ) |
const |
|
inline |
Compute the 3D Pareto frontier (accuracy vs energy vs bandwidth).
◆ configurations()
| const std::vector< PrecisionConfig > & sw::universal::ParetoExplorer::configurations |
( |
| ) |
const |
|
inline |
◆ plotBandwidth()
| void sw::universal::ParetoExplorer::plotBandwidth |
( |
std::ostream & | ostr, |
|
|
int | width = 60, |
|
|
int | height = 15 ) const |
|
inline |
Plot bandwidth dimension (bandwidth vs energy).
◆ plotFrontier()
| void sw::universal::ParetoExplorer::plotFrontier |
( |
std::ostream & | ostr, |
|
|
int | width = 60, |
|
|
int | height = 20 ) const |
|
inline |
Plot frontier as ASCII art (2D: accuracy vs energy).
◆ profileAlgorithm()
| AlgorithmCharacteristics sw::universal::ParetoExplorer::profileAlgorithm |
( |
const std::string & | name, |
|
|
uint64_t | total_ops, |
|
|
uint64_t | total_bytes, |
|
|
double | bandwidth_gbps = 100.0 ) |
|
inlinestatic |
Create algorithm profile from characteristics.
◆ profileConv2D()
| AlgorithmCharacteristics sw::universal::ParetoExplorer::profileConv2D |
( |
uint64_t | H, |
|
|
uint64_t | W, |
|
|
uint64_t | C_in, |
|
|
uint64_t | C_out, |
|
|
uint64_t | K, |
|
|
int | elem_bytes = 4 ) |
|
inlinestatic |
◆ profileDotProduct()
Common algorithm profiles.
◆ profileGEMM()
| AlgorithmCharacteristics sw::universal::ParetoExplorer::profileGEMM |
( |
uint64_t | M, |
|
|
uint64_t | N, |
|
|
uint64_t | K, |
|
|
int | elem_bytes = 4 ) |
|
inlinestatic |
◆ recommendForAccuracy()
| PrecisionConfig sw::universal::ParetoExplorer::recommendForAccuracy |
( |
double | required_accuracy | ) |
const |
|
inline |
Find best configuration for given accuracy requirement (2D).
◆ recommendForAlgorithm()
Find best configuration for a specific algorithm profile This is the recommended method for memory-aware selection.
◆ recommendForBandwidth()
| PrecisionConfig sw::universal::ParetoExplorer::recommendForBandwidth |
( |
double | max_bandwidth_factor | ) |
const |
|
inline |
Find best configuration for given bandwidth constraint (3D).
◆ recommendForEnergy()
| PrecisionConfig sw::universal::ParetoExplorer::recommendForEnergy |
( |
double | max_energy_factor | ) |
const |
|
inline |
Find best configuration for given energy budget (2D).
◆ recommendWithConstraints()
| PrecisionConfig sw::universal::ParetoExplorer::recommendWithConstraints |
( |
double | required_accuracy, |
|
|
double | max_energy_factor, |
|
|
double | max_bandwidth_factor ) const |
|
inline |
Find best configuration with combined constraints (3D).
◆ report()
| void sw::universal::ParetoExplorer::report |
( |
std::ostream & | ostr | ) |
const |
|
inline |
◆ resetToStandard()
| void sw::universal::ParetoExplorer::resetToStandard |
( |
| ) |
|
|
inline |
Reset to standard configurations.
◆ rooflineAnalysis()
| void sw::universal::ParetoExplorer::rooflineAnalysis |
( |
std::ostream & | ostr, |
|
|
double | system_bandwidth_gbps = 100.0 ) const |
|
inline |
Generate roofline-style analysis for algorithm selection.
The documentation for this class was generated from the following file: