In order to give full play to the advantages of DCU accelerator and solve the problems of algorithm SpMV(Sparse matrix-vector multiplication) with limited bandwidth, unbalanced load, and non-combined memory access, a SCSR(Static Compressed Sparse Row) using CSR(Compressed Sparse Row) storage format is proposed based on DCU accelerator. The algorithm statically allocates the same number of rows to each thread block according to the average number of non-zero elements in each row to avoid unnecessary computations; the application of storage resources is reduced by reusing the on-chip high-speed storage space LDS(Local Data Shared), thus improving the CU(Compute Unit) occupancy. The experiment uses 15 sparse matrices in different fields for testing. The results show that compared with the SpMV algorithm in the hipSPARSE library, the SCSR algorithm achieves an average speedup ratio of 4.83 times.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.