NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hardware vs. Software Implementation of Warp-Level Features in Vortex RISC-V GPU

H.j. Pu, R. Ravi, Shinnung Jeong, Udit Subramanya, Edward Chung, Jisheng Zhao, Chihyo Ahn, Hyesoon KimarXiv 2025 · DOI

TL;DR

Researchers have successfully implemented modern "warp-level" features—essential for high-performance CUDA applications—on the open-source Vortex RISC-V GPU. By comparing a dedicated hardware extension against a compiler-driven software emulation, they found that while hardware is up to 4x faster, it only requires a tiny 2% increase in chip area, making it a highly efficient upgrade for RISC-V-based accelerators.

What Problem Does This Paper Address?

Traditionally, GPUs follow the SPMD (Single Program Multiple Data) model, where many threads execute the same instruction in lockstep. However, modern GPU programming (like CUDA) has evolved to include "warp-level features." These allow threads within a small group (a warp) to communicate, share data, and synchronize much more finely than the standard model allows.

The Vortex RISC-V GPU is a popular open-source platform for research, but it lacks native support for these modern features. This creates a gap: developers can't easily port state-of-the-art GPU code to RISC-V architectures without significant performance loss or manual rewriting. This paper explores the best way to bridge that gap: do we change the hardware, or do we let the compiler handle it in software?

Methods

The authors explored two distinct paths:

  1. Hardware Solution: They modified the Vortex core architecture by adding three new RISC-V instructions (vx_vote, vx_shfl, and vx_tile). They updated the ALU to handle data shuffling between registers and modified the warp scheduler to support "Cooperative Groups"—essentially allowing the GPU to dynamically reshape how threads are grouped and synchronized.
  2. Software Solution: They extended a technique called Parallel Region (PR) Transformation. In this approach, the compiler identifies sections of code that require thread communication and "serializes" them into loops. Instead of threads communicating instantly via hardware wires, the software emulates this by writing values to a temporary array in memory and having other "threads" (loop iterations) read them back.

Datasets (Benchmarks)

The researchers evaluated their designs using the SimX cycle-level simulator and synthesized the hardware on a Xilinx U50 FPGA. They used six benchmarks to test different aspects of the implementation:

  • Computational Kernels: mse_forward and matmul.
  • Functionality Tests: shfl (shuffle) and vote.
  • Reduction Kernels: reduce and reduce_tile.

Key Insights and Ideas

  • The "Aha" on Area Efficiency: One might expect that adding complex thread-communication hardware would be "expensive" in terms of chip real estate. Surprisingly, the hardware implementation only increased the logic area by about 2%. This suggests that warp-level features are a "low-cost, high-reward" addition for RISC-V GPUs.
  • Software's Hidden Cost: The software-only approach avoids hardware changes but pays a "serialization tax." Because the compiler has to turn parallel thread actions into sequential loops to ensure correctness, performance drops significantly in compute-heavy tasks like matrix multiplication (matmul).
  • Memory Contention Trade-offs: In specific cases like mse_forward, the software approach actually performed reasonably well. This is because the loop serialization naturally reduced the number of simultaneous memory requests, unintentionally easing memory bandwidth bottlenecks that the faster hardware version hit.

Key Results

  • Performance: The hardware implementation achieved a 2.42x geomean speedup in Instructions Per Cycle (IPC) compared to the software version.
  • Microbenchmark Peaks: In specific tests for voting and shuffling, the hardware was nearly 4x faster than the software emulation.
  • Hardware Overhead: Synthesis results showed a total resource utilization overhead of only 1.04% in SLR0 and 0.48% in SLR1 on the FPGA, confirming the design's efficiency.

Limitations and Future Work

While this paper proves that basic warp-level features are easy to add to RISC-V GPUs, some limitations remain:

  • Complex Reductions: The current hardware handles basic data movement, but more complex operations (like multi-stage parallel reductions) could still benefit from further hardware acceleration.
  • Thread Mapping: The authors noted that future work is needed to better map variable-sized CUDA thread blocks to the fixed hardware threads of the Vortex architecture.
  • Compiler Optimization: The software approach, while slower, could likely be improved with more aggressive compiler optimizations to reduce the overhead of the generated loops.

Summary updated

BibTeX
@misc{pu2025hardware,
  author = {H.J. Pu and R. Ravi and Shinnung Jeong and Udit Subramanya and Edward Chung and Jisheng Zhao and Chihyo Ahn and Hyesoon Kim},
  title = {{Hardware vs. Software Implementation of Warp-Level Features in Vortex RISC-V GPU}},
  year = {2025},
  eprint = {2505.03102},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.03102},
  howpublished = {arXiv},
}

Loading related content...

Figure