Abstract
SpMV (Sparse Matrix-Vector Multiplication) has been widely used in various computing fields. Of course, the requirements for its performance also increase with the increase in the amount of data. Under the CPU processor, we can bring SpMV computing high-performance speed increase through multi-threaded programming. Besides, for CPU processors with SIMD (Single Instruction Multiple Data) vectorizations, you can still get additional performance improvements by using the SIMD instruction set. In this article, we used CSR (Compressed Sparse Row) to compress the sparse matrix and compared the performance of using the AVX2 (Advanced Vector Extension 2) instruction set and the serial calculation of SpMV in a single thread. By testing 16 sets of test data, we found that the average using the AVX2 instruction set can bring 6.67% performance improvement (up to 29.97%).
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.