Whilst the RISC-V Vector extension (RVV) has been ratified, at the time of writing both hardware implementations and open source software support are still limited for vectorisation on RISC-V. This is important because vectorisation is crucial to obtaining good performance for High Performance Computing (HPC) workloads and, as of April 2023, the Allwinner D1 SoC, containing the XuanTie C906 processor, is the only mass-produced and commercially available hardware supporting RVV. This paper surveys the current state of RISC-V vectorisation as of 2023, reporting the landscape of both the hardware and software ecosystem. Driving our discussion from experiences in setting up the Allwinner D1 as part of the EPCC RISC-V testbed, we report the results of benchmarking the Allwinner D1 using the RAJA Performance Suite, which demonstrated reasonable vectorisation speedup using vendor-provided compiler, as well as favourable performance compared to the StarFive VisionFive V2 with SiFive's U74 processor.
翻译:尽管RISC-V向量扩展(RVV)已获批准,但截至撰稿时,针对RISC-V的向量化硬件实现与开源软件支持仍十分有限。向量化对高性能计算(HPC)工作负载获得良好性能至关重要,而截至2023年4月,搭载玄铁C906处理器的全志D1 SoC是唯一量产且可商用的支持RVV的硬件。本文调研了2023年RISC-V向量化的现状,报告了硬件与软件生态系统的全景。基于EPCC RISC-V测试平台部署全志D1的经验,我们报告了使用RAJA性能套件对全志D1进行基准测试的结果。实验表明,供应商提供的编译器可实现合理的向量化加速,且其性能优于搭载SiFive U74处理器的StarFive VisionFive V2开发板。