Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
occurrence_energy.hpp File Reference
#include <iostream>
#include <iomanip>
#include <cstdint>
#include <string>
#include "../utility/occurrence.hpp"
#include "energy.hpp"

Classes

struct  sw::universal::energy::EnergyBreakdown< NumberSystem >
 Calculate energy breakdown by operation type. More...
class  sw::universal::energy::OccurrenceEnergy< NumberSystem >
 Wrapper class combining occurrence counting with energy estimation. More...

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::energy

Functions

template<typename NumberSystem>
double sw::universal::energy::calculateEnergy (const occurrence< NumberSystem > &ops, const EnergyCostModel &model, BitWidth width, MemoryLevel mem_level=MemoryLevel::L1_Cache)
 Calculate total energy from operation counts.
template<typename NumberSystem>
EnergyBreakdown< NumberSystem > sw::universal::energy::calculateEnergyBreakdown (const occurrence< NumberSystem > &ops, const EnergyCostModel &model, BitWidth width, MemoryLevel mem_level=MemoryLevel::L1_Cache)
template<typename NumberSystem>
void sw::universal::energy::compareEnergyByPrecision (const occurrence< NumberSystem > &ops, const EnergyCostModel &model, std::ostream &ostr=std::cout)
 Compare energy between two precision configurations.