Gorse Now Supports RISC-V Architecture
Gorse Now Supports RISC-V Architecture
Thanks to the Bianbu Cloud RISC-V cloud computing instances provided by SpacemiT, Gorse has now completed support for the RISC-V architecture.
Download
The RISC-V version of Gorse does not currently offer Docker images. You can choose to:
- Download the binary compressed package
gorse_linux_riscv64.zip
from the Release page. - Or compile the binary or Docker image yourself.
Vector Computation Performance
Although Gorse, written in pure Go, can run on any architecture supported by the Go language, vector computations in Gorse will be inefficient without SIMD instructions. The only adaptation required for the RISC-V architecture was to support the RISC-V Vector Extension instruction set. The RISC-V cloud computing instances provided by Bianbu Cloud feature a 256-bit RVV instruction set.
The longer the vector length, the more pronounced the acceleration effect of RVV instructions. When the vector length is 128, the acceleration can reach fourfold.
Comparison with Other CPUs
The CPU in the RISC-V cloud computing instances provided by Bianbu Cloud is the SpacemiT X60. As a CPU primarily designed for development boards, its vector computation capabilities lag significantly behind older and low-end CPUs on the AMD64 and ARM64 platforms.
We compared the vector computation capabilities of the SpacemiT X60 with four other CPUs:
- MediaTek MT7981BA is a wireless router CPU with a maximum clock speed of 2.0GHz and supports the Neon SIMD instruction set.
- Qualcomm Snapdragon 820, released in 2016, has a maximum frequency of 2.2GHz and supports the Neon SIMD instruction set.
- Qualcomm Snapdragon 845, released in 2018, has a maximum frequency of 2.8GHz and supports the Neon SIMD instruction set.
- Intel Core i7-4500U, a low-power processor released in Q4 2013, has a base frequency of 1.8GHz, can turbo up to 3.0GHz, and supports the AVX SIMD instruction set.
Whether it's a brand-new router with the MT7981BA, a second-hand phone with a Snapdragon 820 or 845, or a second-hand laptop with an i7-4500U, the price is lower than that of a development board with the SpacemiT X60. The final comparison results are as follows:
The SpacemiT X60's vector computation capabilities are slightly better than the wireless router CPU MT7981BA but weaker than the 2016 flagship smartphone CPU Snapdragon 820 and significantly weaker than the 2014 low-power ultrabook CPU Core i7-4500U.
Conclusion
The SpacemiT X60 is primarily intended for development boards, so absolute performance is not particularly critical. However, on the other hand, RISC-V server products are not yet mature, and in the short term, Gorse is not suitable for deployment on RISC-V architecture devices.