|
| enum class | BitWidth : uint8_t { bits_8 = 8
, bits_16 = 16
, bits_32 = 32
, bits_64 = 64
} |
| | Bit-width categories for energy lookup. More...
|
| enum class | MemoryLevel : uint8_t {
Register
, L1_Cache
, L2_Cache
, L3_Cache
,
DRAM
} |
| | Memory hierarchy levels. More...
|
| enum class | Operation : uint8_t {
IntegerAdd
, IntegerSubtract
, IntegerMultiply
, IntegerDivide
,
FloatAdd
, FloatSubtract
, FloatMultiply
, FloatDivide
,
FloatFMA
, FloatSqrt
, Comparison
, BitwiseLogic
,
Shift
} |
| | Operation types for energy lookup. More...
|
| enum class | Architecture {
Generic
, IntelSkylake
, ArmCortexA76
, ArmCortexA55
,
AmdZen2
, AmdZen3
, AmdZen4
, AppleM1
,
AppleM1E
, AppleM2
, AppleM3
} |
| | Architecture enumeration for model selection. More...
|
|
| constexpr EnergyCostModel | amd_zen2_model () |
| | AMD Zen 2 (7nm TSMC) energy model Ryzen 3000 series, EPYC Rome ~2x improvement from 14nm Skylake due to 7nm process.
|
| constexpr EnergyCostModel | amd_zen3_model () |
| | AMD Zen 3 (7nm+ TSMC) energy model Ryzen 5000 series, EPYC Milan Unified 8-core CCX with shared L3, improved IPC.
|
| constexpr EnergyCostModel | amd_zen4_model () |
| | AMD Zen 4 (5nm TSMC) energy model Ryzen 7000 series, EPYC Genoa AVX-512 support, DDR5, improved efficiency.
|
| const EnergyCostModel & | getAmdZen2Model () |
| | Convenience functions.
|
| const EnergyCostModel & | getAmdZen3Model () |
| const EnergyCostModel & | getAmdZen4Model () |
| constexpr EnergyCostModel | apple_m1_model () |
| | Apple M1 (5nm TSMC N5) Performance Cores - Firestorm Very wide OoO design with excellent energy efficiency.
|
| constexpr EnergyCostModel | apple_m1_efficiency_model () |
| | Apple M1 Efficiency Cores - Icestorm Smaller, more power-efficient cores for background tasks.
|
| constexpr EnergyCostModel | apple_m2_model () |
| | Apple M2 (5nm TSMC N5P) Performance Cores - Avalanche Improved from M1 with better memory bandwidth.
|
| constexpr EnergyCostModel | apple_m3_model () |
| | Apple M3 (3nm TSMC N3B) Performance Cores - Everest Latest generation with hardware ray tracing, mesh shaders.
|
| const EnergyCostModel & | getAppleM1Model () |
| | Convenience functions.
|
| const EnergyCostModel & | getAppleM1EfficiencyModel () |
| const EnergyCostModel & | getAppleM2Model () |
| const EnergyCostModel & | getAppleM3Model () |
| constexpr EnergyCostModel | arm_cortex_a76_model () |
| | ARM Cortex-A76/A78 class energy model (7nm) These are high-performance mobile cores (big cores in big.LITTLE).
|
| constexpr EnergyCostModel | arm_cortex_a55_model () |
| | ARM Cortex-A55 class energy model (7nm) These are efficiency cores (LITTLE cores in big.LITTLE).
|
| const EnergyCostModel & | getArmCortexA76Model () |
| | Convenience: get ARM A76 model (default high-performance mobile).
|
| const EnergyCostModel & | getArmCortexA55Model () |
| | Convenience: get ARM A55 model (efficiency core).
|
| constexpr EnergyCostModel | generic_45nm_model () |
| | Generic 45nm CMOS energy model Based on Horowitz ISSCC 2014 data.
|
| const EnergyCostModel & | getGenericModel () |
| | Convenience: get the default generic model.
|
| constexpr EnergyCostModel | intel_skylake_model () |
| | Intel Skylake (14nm) energy model Scaled from 45nm baseline with ~3x improvement.
|
| const EnergyCostModel & | getIntelSkylakeModel () |
| | Convenience: get the Intel Skylake model.
|
| const EnergyCostModel & | getModel (Architecture arch) |
| | Get energy model for specified architecture.
|
| const EnergyCostModel & | getDefaultModel () |
| | Auto-detect architecture and return appropriate model Falls back to generic model if detection fails.
|
| double | 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 | 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 | printModelSummary (std::ostream &os, const EnergyCostModel &model) |
| | Print energy model summary to stream.
|
| template<typename NumberSystem> |
| double | 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 > | calculateEnergyBreakdown (const occurrence< NumberSystem > &ops, const EnergyCostModel &model, BitWidth width, MemoryLevel mem_level=MemoryLevel::L1_Cache) |
| template<typename NumberSystem> |
| void | compareEnergyByPrecision (const occurrence< NumberSystem > &ops, const EnergyCostModel &model, std::ostream &ostr=std::cout) |
| | Compare energy between two precision configurations.
|