|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include "cost_models/energy_model.hpp"#include "cost_models/generic_45nm.hpp"#include "cost_models/intel_skylake.hpp"#include "cost_models/arm_cortex_a.hpp"#include "cost_models/amd_zen.hpp"#include "cost_models/apple_m.hpp"#include "occurrence_energy.hpp"#include "hw_counters/rapl.hpp"Classes | |
| class | sw::universal::energy::EnergyEstimator |
| Energy estimator helper class Accumulates energy for a sequence of operations. More... | |
Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
| namespace | sw::universal::energy |
Enumerations | |
| enum class | sw::universal::energy::Architecture { sw::universal::energy::Generic , sw::universal::energy::IntelSkylake , sw::universal::energy::ArmCortexA76 , sw::universal::energy::ArmCortexA55 , sw::universal::energy::AmdZen2 , sw::universal::energy::AmdZen3 , sw::universal::energy::AmdZen4 , sw::universal::energy::AppleM1 , sw::universal::energy::AppleM1E , sw::universal::energy::AppleM2 , sw::universal::energy::AppleM3 } |
| Architecture enumeration for model selection. More... | |
Functions | |
| const EnergyCostModel & | sw::universal::energy::getModel (Architecture arch) |
| Get energy model for specified architecture. | |
| const EnergyCostModel & | sw::universal::energy::getDefaultModel () |
| Auto-detect architecture and return appropriate model Falls back to generic model if detection fails. | |
| double | sw::universal::energy::energyRatio (const EnergyCostModel &model, Operation op, BitWidth narrow, BitWidth wide) |
| Calculate energy ratio between two bit-widths for an operation Returns how much more energy the wider operation uses. | |
| double | sw::universal::energy::energySavings (const EnergyCostModel &model, Operation op, BitWidth from, BitWidth to) |
| Calculate potential energy savings from precision reduction Returns energy saved per operation in picojoules. | |
| void | sw::universal::energy::printModelSummary (std::ostream &os, const EnergyCostModel &model) |
| Print energy model summary to stream. | |