Litcius/Paper detail

Selecting optimal SpMV realizations for GPUs via machine learning

Ernesto Dufrechou, Pablo Ezzatti, Enrique S. Quintana–Ort́ı

2021The International Journal of High Performance Computing Applications21 citationsDOIOpen Access PDF

Abstract

More than 10 years of research related to the development of efficient GPU routines for the sparse matrix-vector product (SpMV) have led to several realizations, each with its own strengths and weaknesses. In this work, we review some of the most relevant efforts on the subject, evaluate a few prominent routines that are publicly available using more than 3000 matrices from different applications, and apply machine learning techniques to anticipate which SpMV realization will perform best for each sparse matrix on a given parallel platform. Our numerical experiments confirm the methods offer such varied behaviors depending on the matrix structure that the identification of general rules to select the optimal method for a given matrix becomes extremely difficult, though some useful strategies (heuristics) can be defined. Using a machine learning approach, we show that it is possible to obtain unexpensive classifiers that predict the best method for a given sparse matrix with over 80% accuracy, demonstrating that this approach can deliver important reductions in both execution time and energy consumption.

Topics & Concepts

Computer scienceHeuristicsRealization (probability)Matrix (chemical analysis)Identification (biology)Sparse matrixCUDAArtificial intelligenceMachine learningStrengths and weaknessesAlgorithmParallel computingMathematicsEpistemologyBotanyPhysicsBiologyMaterials scienceOperating systemGaussianPhilosophyComposite materialStatisticsQuantum mechanicsMatrix Theory and AlgorithmsParallel Computing and Optimization TechniquesStochastic Gradient Optimization Techniques
Selecting optimal SpMV realizations for GPUs via machine learning | Litcius