Skip to main content
QUICK REVIEW

[Paper Review] Short reasons for long vectors in HPC CPUs: a study based on RISC-V

Pablo Vizcaíno, Georgios Ieronymakis|arXiv (Cornell University)|Sep 13, 2023
Parallel Computing and Optimization TechniquesComputer Science12 references3 citations
TL;DR

This paper evaluates the impact of vector length, memory bandwidth, and latency on non-dense HPC kernels using a customizable RISC-V core with a configurable vector unit supporting up to 256 double-precision elements per instruction. Results show that longer vector lengths significantly improve tolerance to memory latency and enable efficient utilization of high-bandwidth memory systems, even with a single core, offering strong performance benefits beyond dense linear algebra workloads.

ABSTRACT

For years, SIMD/vector units have enhanced the capabilities of modern CPUs in High-Performance Computing (HPC) and mobile technology. Typical commercially-available SIMD units process up to 8 double-precision elements with one instruction. The optimal vector width and its impact on CPU throughput due to memory latency and bandwidth remain challenging research areas. This study examines the behavior of four computational kernels on a RISC-V core connected to a customizable vector unit, capable of operating up to 256 double precision elements per instruction. The four codes have been purposefully selected to represent non-dense workloads: SpMV, BFS, PageRank, FFT. The experimental setup allows us to measure their performance while varying the vector length, the memory latency, and bandwidth. Our results not only show that larger vector lengths allow for better tolerance of limitations in the memory subsystem but also offer hope to code developers beyond dense linear algebra.

Motivation & Objective

  • To investigate how vector length, memory bandwidth, and memory latency affect performance in non-dense HPC kernels.
  • To evaluate the benefits of long-vector architectures (up to 256 double-precision elements) in real hardware using an FPGA-based prototype.
  • To demonstrate that vectorized code with large vector lengths can efficiently utilize high-bandwidth memory and better tolerate memory latency compared to scalar or short-vector code.
  • To provide a flexible co-design platform for hardware-software co-optimization in HPC workloads beyond dense linear algebra.

Proposed method

  • An FPGA-based Software Development Vehicle (FPGA-SDV) was implemented, integrating a RISC-V super-scalar core with a configurable 8-lane Vector Processing Unit (VPU) supporting up to 256 double-precision elements per instruction.
  • The system allows runtime configuration of vector length (VL), memory bandwidth (1–64 Bytes/cycle), and memory latency (via added cycles).
  • Four non-dense HPC kernels—SpMV, BFS, PageRank, and FFT—were implemented and benchmarked under varying architectural parameters.
  • Performance was measured by normalizing execution time against a baseline with 1 Byte/cycle bandwidth, enabling comparison across bandwidth and latency conditions.
  • The Bandwidth Limiter tool was used to artificially constrain memory throughput to simulate different system bandwidths.
  • A co-design methodology was applied, enabling iterative hardware and software tuning based on real measurements.

Experimental results

Research questions

  • RQ1How does increasing vector length affect performance under varying memory bandwidth and latency conditions in non-dense HPC kernels?
  • RQ2To what extent can long-vector architectures (up to 256 elements) improve memory latency tolerance compared to scalar or short-vector implementations?
  • RQ3Can a single core with a long-vector unit effectively utilize high-bandwidth memory systems, and at what bandwidth thresholds does performance scale?
  • RQ4How do non-dense kernels like SpMV, BFS, PageRank, and FFT behave under memory-constrained conditions with different vector lengths?

Key findings

  • Scalar implementations showed no performance improvement beyond 1–2 Bytes/cycle of memory bandwidth, plateauing early due to limited memory request throughput.
  • Vectorized implementations with larger vector lengths (e.g., VL=256) achieved significant performance gains at higher bandwidths, with execution times continuing to improve up to 64 Bytes/cycle.
  • Longer vector lengths significantly improved resilience to memory latency, with vectorized codes degrading less than scalar codes under increased latency conditions.
  • The vectorized code with VL=256 achieved better performance scaling with memory bandwidth than scalar or short-vector (VL=8) versions, demonstrating superior memory system utilization.
  • The FPGA-SDV platform enabled precise, real-hardware measurement of architectural trade-offs, validating that long vectors enhance both latency tolerance and bandwidth utilization.
  • The results suggest that vector architectures with large vector lengths offer tangible benefits for non-dense scientific workloads, extending the utility of vectorization beyond traditional dense linear algebra.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.