TL;DR
This paper explores how Small-Scale Reconfigurability (SSR) can enhance graphics hardware. By reusing functional units instead of replicating them, SSR allows for double-precision calculations without sacrificing single-precision performance and boosts fragment shader throughput with minimal area overhead.
What Problem Does This Paper Address?
Modern graphics hardware faces a fundamental trade-off between performance and flexibility. General-purpose processors offer high flexibility but at the cost of performance, area, and power. Conversely, custom ASICs provide peak performance for a narrow set of tasks. Graphics processors need to strike a balance, offering both high performance for demanding visual tasks and flexibility for diverse applications. Traditional reconfigurable hardware like FPGAs are too large and slow for this purpose. The paper addresses this by investigating Small-Scale Reconfigurability (SSR), an architectural approach that reuses common functional subunits within a component to achieve high performance and reduced area, aiming to bridge the gap between ASICs and general-purpose processors for graphics hardware.
Methods
The authors propose and evaluate two main applications of SSR in graphics hardware:
- Increased Fragment Shader Throughput: They introduce a "Flexible Arithmetic Unit" (FAC) that can be reconfigured to perform either multiplication or addition in a single cycle. This FAC replaces dedicated multiplier and adder units in the fragment pipeline. By strategically scheduling operations, the SSR architecture allows for more complex operations (like multi-vector additions and dot products) to be performed in fewer cycles, leading to increased throughput.
- Double-Precision Floating-Point Support: They propose "dual-mode" floating-point units (adders and multipliers) that can perform either two single-precision operations or one double-precision operation. These units are integrated into the fragment pipeline, effectively creating an 8-wide double-precision engine. This allows for scientific computing tasks that require higher precision without compromising the performance of the single-precision path crucial for gaming.
The evaluation uses a modified Qsilver simulator, an existing framework for simulating graphics architectures. They also leverage Chromium to intercept real application traces and NVShaderPerf to schedule programs for their baseline and SSR architectures.
Datasets
The paper uses the following benchmarks and applications:
- Doom III: A representative game demo, used to evaluate performance with its associated fragment shaders.
- Brook Distribution Benchmarks:
bitonic_sort: A parallel sorting network.
image_proc(25,25): An image convolution shader.particle_cloth(5,10,15): A cloth simulation.volume_division(100): A volume isosurface extractor.
These benchmarks are used to generate fragment program traces and simulate their execution on both the baseline and SSR architectures.
Key Insights and Ideas
- SSR as a Sweet Spot for Graphics: The vector-like, SIMD nature of graphics processing makes it an ideal candidate for SSR. The infrequent need for reconfiguration in such environments means the overhead is amortized over many operations, making SSR highly efficient.
- Area Efficiency of Reusability: Reusing functional units (like FACs) instead of replicating them significantly reduces the overall chip area compared to a naive approach of having separate units for every possible operation.
- Double-Precision Without Performance Penalties: The dual-mode FPUs demonstrate that adding double-precision capabilities to the fragment pipeline is feasible without negatively impacting the performance of the single-precision path, which is critical for the gaming market.
- Scheduling is Key: The performance gains from SSR are heavily dependent on effective scheduling of operations to take advantage of the reconfigurable units' flexibility. The paper highlights how SSR enables more complex operations to be chained together.
Key Results
- Increased Throughput: The SSR fragment architecture showed performance improvements across most tested shaders, with gains varying from shader to shader. For example, in the
volume_divisionbenchmark, one shader (shader 2) saw a throughput increase from 290.91 MP/s to 6400.00 MP/s, a significant improvement attributed to frequent dot product and multiply-accumulate instructions. Overall, full pipeline simulations indicated that the fragment-bound nature of these benchmarks allowed the fragment processor improvements to translate to full pipeline speedups. - Double-Precision Performance: When using dual-mode units configured for double-precision, the cycle counts for the tested benchmarks never exceeded twice the time required for single-precision calculations. This demonstrates that double-precision can be added with a modest increase in gate count and without affecting single-precision performance.
- Area Overhead: The proposed SSR modifications (FACs and dual-mode FPUs) resulted in a small area overhead. For the FAC-based SSR architecture, the cost was 382,464 gates, less than 0.2% of the total area of an NVIDIA 6800 GT. For the dual-mode FPUs, the overhead was approximately 815,744 gates, or 0.4% of the 6800 GT's total area.
Limitations and Future Work
Limitations:
- Simulator Constraints: The study relies on a modified Qsilver simulator, which, while powerful, may have limitations in perfectly capturing all real-world hardware nuances.
- Fragment-Bound Assumption: The full pipeline simulation results are heavily dependent on the assumption that the benchmarks are sufficiently fragment-bound. While this is true for the tested applications, other parts of the pipeline could become bottlenecks in different scenarios.
- Limited Scope of SSR: The SSR modifications focused on multipliers and adders. Other specialized units like logarithms or square roots were not addressed.
Future Work:
- Power Consumption: The authors suggest exploring SSR's potential for reducing power consumption, as SSR components are less likely to be idle, thus minimizing static power leakage.
- Broader Application of SSR: Applying SSR to other parts of the graphics pipeline beyond the fragment engine.
- Full Double-Precision Engine: Investigating the possibility of a complete double-precision arithmetic engine, including units for reciprocal, square-root, and logarithm operations.
- Advanced Reconfiguration: Exploring more advanced reconfiguration strategies and their impact on performance and power.
Summary updated