The invention relates to the technical field of graph calculation and brain-like calculation, in particular to a locally enhanced
sparse matrix multiplied
sparse vector calculation method and device, and the method comprises the steps: dividing a column into a long column and a short column based on the number of non-zero elements in a
sparse matrix column, and splitting the long column into a plurality of continuous long column fragments; reordering according to a target fragment
list constructed by the short-column fragments and the long-column fragments,
processing fragments in a new fragment
list by utilizing each thread block on the GPU, caching the generated update pairs into a shared
hash table of the target thread block, aggregating the update pairs meeting a preset condition in the shared
hash table, and storing the aggregated update pairs in the shared
hash table; and writing the aggregated update pairs back to the global output vector in batches to obtain a locally enhanced
sparse matrix multiplied
sparse vector calculation result. Therefore, the problems of insufficient data locality mining, increased memory access
delay and reduction of the overall performance and
resource utilization rate of the SpMSpV on the GPU due to relatively high overhead of a method based on sorting reduction in related technologies are solved.