Efficient Support of the Scan Vector Model for RISC-V Vector Extension

被引:4
|
作者
Lai, Hung-Ming [1 ]
Lee, Jenq-Kuen [1 ]
机构
[1] Natl Tsing Hua Univ, Dept Comp Sci, Hsinchu, Taiwan
关键词
RISC-V vector extension; SIMD; scan;
D O I
10.1145/3547276.3548518
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
RISC-V vector extension (RVV) provides wide vector registers, which is applicable for workloads with high data-level parallelism such as machine learning or cloud computing. However, it is not easy for developers to fully utilize the underlying performance of a new architecture. Hence, abstractions such as primitives or software frameworks could be employed to ease this burden. Scan, also known as all-prefix-sum, is a common building block for many parallel algorithms. Blelloch presented an algorithmic model called the scan vector model, which uses scan operations as primitives, and demonstrates that a broad range of applications and algorithms can be implemented by them. In our work, we present an efficient support of the scan vector model for RVV. With this support, parallel algorithms can be developed upon those primitives without knowing the details of RVV while gaining the performance that RVV provides. In addition, we provide an optimization scheme related to the length multiplier feature of RVV, which can further improve the utilization of the vector register files. The experiment shows that our support of scan and segmented scan for RVV can achieve 2.85x and 4.29x speedup, respectively, compared to the sequential implementation. With further optimization using the length multiplier of RVV, we can improve the previous result to 21.93x and 15.09x speedup.
引用
收藏
页数:8
相关论文
共 50 条
  • [21] Acceleration with long vector architectures: Implementation and evaluation of the FFT kernel on NEC SX-Aurora and RISC-V vector extension
    Vizcaino, Pablo
    Mantovani, Filippo
    Ferrer, Roger
    Labarta, Jesus
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2023, 35 (20):
  • [22] An Open-Source RISC-V Vector Math Library
    Tang, Ping Tak Peter
    PROCEEDINGS 2024 IEEE 31ST SYMPOSIUM ON COMPUTER ARITHMETIC, ARITH 2024, 2024, : 60 - 67
  • [23] Better-Than-Worst-Case: A Frequency Adaptation Asynchronous RISC-V Core With Vector Extension
    Zhou, Lingfeng
    Xiao, Shanlin
    Wang, Huiyao
    Wang, Jinghai
    Xu, Zeyang
    Wang, Bohan
    Yu, Zhiyi
    IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, 2024, 32 (06) : 1045 - 1057
  • [24] A Scalable RISC-V Vector Processor Enabling Efficient Multi-Precision DNN Inference
    Wang, Chuanning
    Fang, Chao
    Wu, Xiao
    Wang, Zhongfeng
    Lin, Jun
    2024 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS, ISCAS 2024, 2024,
  • [25] Sparq: A Custom RISC-V Vector Processor for Efficient Sub-Byte Quantized Inference
    Dupuis, Theo
    Fournier, Yoan
    AskariHemmat, MohammadHossein
    El Zarif, Nizar
    Leduc-Primeau, Francois
    David, Jean Pierre
    Savaria, Yvon
    2023 21ST IEEE INTERREGIONAL NEWCAS CONFERENCE, NEWCAS, 2023,
  • [26] A RISC-V "V" VP: Unlocking Vector Processing for Evaluation at the System Level
    Schlaegl, Manfred
    Stockinger, Moritz
    Grosse, Daniel
    2024 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION, DATE, 2024,
  • [27] A RISC-V Simulator and Benchmark Suite for Designing and Evaluating Vector Architectures
    Ramirez, Cristobal
    Hernandez, Cesar A.
    Palomar, Oscar
    Unsal, Osman
    Ramirez, Marco A.
    Cristal, Adrian
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2020, 17 (04)
  • [28] RISC-V Extension for Lightweight Cryptography
    Tehrani, Etienne
    Graba, Tarik
    Merabet, Abdelmalek Si
    Danger, Jean-Luc
    2020 23RD EUROMICRO CONFERENCE ON DIGITAL SYSTEM DESIGN (DSD 2020), 2020, : 222 - 228
  • [29] RVCE-FAL: A RISC-V Scalar-Vector Custom Extension for Faster FALCON Digital Signature
    Yu, Xinglong
    Sun, Yi
    Zhao, Yifan
    Kuang, Honglin
    Han, Jun
    2024 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION, DATE, 2024,
  • [30] An energy-efficient crypto-extension design for RISC-V
    Wang, Weizhen
    Han, Jun
    Cheng, Xu
    Zeng, Xiaoyang
    MICROELECTRONICS JOURNAL, 2021, 115