[Paper Review] Towards energy efficiency and maximum computational intensity for stencil algorithms using wavefront diamond temporal blocking
This paper proposes wavefront diamond temporal blocking (MWD) for stencil algorithms to enhance energy efficiency and computational intensity on multicore CPUs. By tuning cache block size and loop tiling in the leading dimension, MWD reduces code balance and DRAM power consumption—demonstrating that optimal performance does not guarantee minimal energy use, even at fixed clock speed.
We study the impact of tunable parameters on computational intensity (i.e., inverse code balance) and energy consumption of multicore-optimized wavefront diamond temporal blocking (MWD) applied to different stencil-based update schemes. MWD combines the concepts of diamond tiling and multicore-aware wavefront blocking in order to achieve lower cache size requirements than standard single-core wavefront temporal blocking. We analyze the impact of the cache block size on the theoretical and observed code balance, introduce loop tiling in the leading dimension to widen the range of applicable diamond sizes, and show performance results on a contemporary Intel CPU. The impact of code balance on power dissipation on the CPU and in the DRAM is investigated and shows that DRAM power is a decisive factor for energy consumption, which is strongly influenced by the code balance. Furthermore we show that highest performance does not necessarily lead to lowest energy even if the clock speed is fixed.
Motivation & Objective
- To reduce code balance and energy consumption in stencil computations on modern multicore CPUs.
- To analyze how cache block size and loop tiling affect computational intensity and power dissipation.
- To evaluate the trade-off between performance and energy efficiency under fixed clock speed.
- To identify DRAM power as a dominant factor in overall energy consumption for stencil workloads.
Proposed method
- Applying wavefront diamond temporal blocking (MWD) to combine diamond tiling with multicore-aware wavefront blocking for reduced cache footprint.
- Tuning the cache block size to minimize theoretical and observed code balance.
- Introducing loop tiling in the leading dimension to expand the range of viable diamond sizes.
- Measuring power dissipation in CPU and DRAM to assess energy efficiency across different configurations.
- Evaluating performance and energy consumption on a contemporary Intel CPU under fixed clock speed.
- Analyzing the relationship between code balance and energy consumption, particularly DRAM power.
Experimental results
Research questions
- RQ1How does cache block size impact code balance and energy consumption in MWD-optimized stencil kernels?
- RQ2To what extent does loop tiling in the leading dimension improve the applicability of diamond tiling in MWD?
- RQ3What is the relative contribution of CPU and DRAM power to total energy consumption in stencil computations?
- RQ4Does achieving maximum performance always result in minimum energy consumption when clock speed is fixed?
- RQ5How does computational intensity (inverse code balance) correlate with energy efficiency in MWD-optimized workloads?
Key findings
- DRAM power dissipation is the dominant factor in total energy consumption for stencil algorithms, significantly influenced by code balance.
- Tuning cache block size effectively reduces code balance and improves energy efficiency, even when performance is not maximized.
- Loop tiling in the leading dimension enables a wider range of viable diamond sizes, enhancing optimization flexibility.
- Highest performance does not correspond to lowest energy consumption, even with fixed clock speed, indicating a performance-energy trade-off.
- Theoretical and observed code balance values align closely, validating the model’s predictive power for energy-aware optimization.
- MWD reduces cache requirements compared to standard wavefront temporal blocking, enabling better scalability on multicore systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.