Adaptive sparse matrix vector multiplication strategy selection and optimization method

A technology of sparse matrix and optimization method, applied in the field of high-performance computing, can solve problems such as poor versatility, and achieve the effect of high solution efficiency

Pending Publication Date: 2022-05-13
UNIV OF SCI & TECH BEIJING
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The invention provides an adaptive sparse matrix-vector multiplication strategy selection and optimization method to solve the problem that although the existing Sp

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Adaptive sparse matrix vector multiplication strategy selection and optimization method
  • Adaptive sparse matrix vector multiplication strategy selection and optimization method
  • Adaptive sparse matrix vector multiplication strategy selection and optimization method

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0041]Since various SpMV algorithms have their own characteristics, their effects in different scenarios are also different. In order to maximize the efficiency of various SpMV algorithms and achieve better application effects, this embodiment provides a An adaptive sparse matrix-vector multiplication strategy selection and optimization method suitable for GPU architecture, the method is an adaptive strategy selection (Adaptive) algorithm that selects the most appropriate SpMV algorithm according to the characteristics of the matrix; it involves three existing Some SpMV algorithms: CSR-Vector algorithm, CSR-Stream algorithm, hola algorithm, the Adaptive algorithm realizes the analysis of the characteristics of the matrix, and the time consumption of this part is completely negligible, and according to the average number of non-zero elements in the matrix row, The most appropriate calculation strategy is selected for the number of total non-zero elements of the matrix and the si...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a self-adaptive sparse matrix vector multiplication strategy selection and optimization method, which is suitable for a GPU (Graphics Processing Unit) architecture, and comprises the following steps: partitioning a to-be-processed matrix according to rows, counting the number of non-zero elements of each matrix sub-block, and if the difference multiple of the number of non-zero elements of each matrix sub-block is higher than a first preset threshold value, determining that the matrix is not processed; if yes, processing is carried out by adopting a self-adaptive CSR-Vector algorithm; counting the row average non-zero element number of the to-be-processed matrix, and if the row average non-zero element number of the matrix is lower than a second preset threshold value, adopting an improved CSR-Stream algorithm for solving; counting the number of non-zero elements of the to-be-processed matrix, and if the number of the non-zero elements of the to-be-processed matrix is larger than a third preset threshold value, adopting a hola algorithm for solving; and if all the conditions are not met, a CSR-Vector algorithm is adopted for solving. According to the method, adaptive efficient SpMV solving for different application problems is realized.

Description

technical field [0001] The invention relates to the technical field of high-performance computing, in particular to an adaptive sparse matrix-vector multiplication strategy selection and optimization method suitable for GPU architecture. Background technique [0002] SpMV (Sparse matrix–vector multiplication, sparse matrix-vector multiplication) is a matrix-vector multiplication operation of the form y=αAx+βy (where A is a sparse matrix, x and y are dense vectors, and α and β are scalars). It is widely used in scientific computing, economic construction, signal processing, document retrieval and other fields. Usually, the matrix involved in the calculation is sparse, such as the matrix produced by the discretization of physical processes. In recent years, SpMV has been classified among seven numerical methods considered to be of great importance to science and engineering for at least the next decade. [0003] For different storage formats of sparse matrix A, there will be...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/16
CPCG06F17/16
Inventor 胡长军卢旭储根深何远杰董玲玉邢龙岳
Owner UNIV OF SCI & TECH BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products