Accelerating Sparse Linear Solvers in OpenFOAM using RISC-V Vector Extensions
Gabriele Ceccolini, Federico Ficarelli, Filippo Barbari, Simone Bnà, Andrea Bartolini
Abstract
Computational Fluid Dynamics (CFD) relies heavily on the efficiency of linear solvers based on sparse linear algebra kernels. Widely used frameworks like OpenFOAM exploit parallelism primarily at the domain decomposition level via MPI. Support for vector/SIMD architectures is limited to compiler auto-vectorization. Furthermore, support for such architectures is limited by OpenFOAM's internal matrix data format, which is intrinsically ill-suited for the contiguous memory accesses required for efficient execution on vector processors. In this work, we focused on two very different RISC-V architectures: the prototype long-vector EPAC accelerator and the commercial short-vector CPU Sophon SG2044. On these platforms, we optimized the Sparse Matrix-Vector multiplication (SpMV) using RISC-V vector intrinsics and integrated it into a custom smoother, performing a runtime conversion of internal data into a vector-friendly format. Experimental results on the EPAC test chip show a 6x speedup for the smoother; benchmarks on Monte Cimone (MCv2) cluster with the Sophon SG2044 processor achieve a 1.5x smoother speedup, proving that legacy CFD codes can be effectively accelerated on both research and commercial emerging hardware.
Create a lesson
Metadata
- Journal
- RISC-V Summit Europe 2026 Bologna
Related papers
Matching Architecture to Workload: Comparing RISC-V Parallel Accelerators for Energy-Efficient Embedded Computing
Shared title terminologycs.DCLuca Colombo, Luigi Ghionda, Amirhossein Kiamarzi et al.
Exploring RISC-V Long Vector Capabilities: A Case Study in Earth Sciences
Shared title terminologycs.DCFabio Banchelli, David Jurado, Marta Garcia-Gasulla et al.
torch-sla: Differentiable Sparse Linear Algebra with Adjoint Solvers and Sparse Tensor Parallelism for PyTorch
Shared title terminologycs.DCMingyuan Chi, Shizheng Wen
Is RISC-V Ready for Massively Parallel Astrophysical Codes?
Shared title terminologycs.DCJenny Lynn Almerol, Nitin Shukla, Federico Ficarelli et al.
Real-Time AI Acceleration on a 2D Spatial Dataflow Architecture
Shared title terminologycs.DCShriram Raja, Anton Njavro, Richard West
X-BQSR: Holistic Acceleration of Base Quality Recalibration for Scalable Genomic Analysis
Shared title terminologycs.DCEugenio Marinelli, Ivan Donchev Kabadzhov, Raja Appuswamy