Sparse Matrix Matrix-Vector Multiplication and Auto-Tuning
- Author
- ZhuangLi
- Advisor
- WanJian
- School
- Hangzhou University of Electronic Science and Technology
- Major
- Applied Computer Technology
- Classification
- TP311.12 Data structures
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 29
- Citations
- 0
Abstract
In the field of numerical analysis, a sparse matrix is a matrix populated primarily with zeros. Sparse matrix multiplication is widely involved in scientific researches and large numbers of applications. Large scale sparse matrix plays an important role in the discrete solution of many physical processes, such as represents the interaction between elements in finite element analysis, represents graph in graph theory, solves the partial differential equation in fluid mechanics, and so on. At present, for the studies of sparse matrix has infiltrated into many areas, such as structural analysis, network theory, power distribution systems, chemical engineering, photogrammetry and other aspects of science learning and management studies. The study of sparse matrix vector multiplication helps to improve the research in there related fields and solve the problem of computing efficiency. Therefore, this study is meaningful.In this paper, series optimization methods of SpMV have been approached. And the paper presents a method SCS which is based on principal component analysis (PCA) and does an auto-tuning work with optimization techniques. Then the paper presents and develops a math library COSC which integration of existing optimization techniques and using SCS as its auto-tuning algorithm. On the basis of the above work, this paper puts forward innovative the quadtree storage which uses recursive and rearrangement technique. Thanks to the design of the quadtree, this storage ensures that it gets a higher cache hit rate in SpMV, so as to enhance operational overall performance. Further, this paper gives the analysis based on quadtree based sparse matrix vector multiplication performance and the principles of optimization.The main work of this paper can be summarized as follows:(1) With the study of the existing optimization techniques, this paper focuses on the aspect of computer architecture, summaries and presents four kinds of optimization strategy.(2) In order to get the corresponding combination strategy for different non-zeros distribution, this paper presents an auto-tuning method called Strategy for Combination Strategy (SCS) which bases on Principal Component Analysis (PCA) and goals to find out the approximate optimal solution of combination strategy with the linear time complexity. Experiments show the SCS method is valid. It can be settled in the SpMV library such as COSC to get the approximate optimal combination strategy. And the mathematic kernel library COSC can also be settled in SpMV and improve the efficiency of hot spot.(3) This paper proposes a quadtree storage format, derived from recursive divisions of matrix. With this data structure, the original sparse matrix multiplication can be transferred to computations over independent relatively small regions, which can well fit the cache capacity. Therefore, a significant improvement of performance could be achieved. Moreover, this region-based computation framework promises substantial parallelism in distributed computing environment. We elaborate our solution of quadtree based parallel matrix multiplication, including tuning a better region size, instruction level optimization techniques and computation distribution strategy. Extra cost introduced by this data model is discussed as well. The quadtree storage format achieves high performance after employing instruction level optimization techniques, and the experiments in Lenovo Deepcomp7000demonstrate that the sparse matrix-vector multiplication has an average of1.63speedup comparing with the Intel Cluster Math Kernel Library implementation.(4) With the summary, this paper shows the optimization direction of this paper and presents the future work.
Table of contents
Summary 5-6
ABSTRACT 6-10
first chapter 10-15
1.1 topics relevant background and significance 10-11
1.2 topics related to the field of development status at home and abroad major work 11-13
1.3 papers 13-15
Chapter II sparse matrix-vector multiplication and optimization technology 15-19
2.1 for improved algorithm time complexity 15
improved 2.2 for computer architecture 15-17
2.2.1 data structure Improvement 15-16
2.2.2 underlying optimization 16-17
2.2.3 parallel Optimization 17
2.2.4 automatic tuning 17
2.3 Summary 17-19
Chapter CSR format based on sparse matrix-vector multiplication optimization and automatic tuning 19-32
3.1 optimization techniques 19-23
3.1.1 underlying optimization 20-21
3.1.2 working set optimization 21
3.1. 3 parallel optimization 21-23
3.2 automatic tuning technology 23-25 ??
3.2.1 motivation 23-24
3.2.2 pretreatment 24
3.2.3 algorithm core 24-25
3.3 results and analysis 25-30
3.4 Summary 30 - 32
fourth chapter based on sparse matrix storage and matrix multiplication quadtree optimization 32-52
4.1 quadtree based sparse matrix storage format 32-36
recursive 4.1.1 sparse matrix decomposition and logical description achieve 33-34
4.1.2 quadtree storage format 34-36
4.2 based on quad multiplication algorithm tree storage format 36-37
4.2.1 matrix-vector multiplication between 36
4.2.2 matrix multiplication 36-37
4.3 storage format efficiency analysis 37-38
4.3.1 target area length d impact on efficiency affect 37-38
4.3.2 matrix properties on the efficiency of 38
4.4 performance optimization and parallel 38-41
4.4.1 SIMDization 38-39
4.4.2 thread- level optimization 39 <br / > 4.4.3 distributed parallel 39-41
4.5 experiment 41-50
4.5.1 experimental platform and data 41-42
4.5 .2 experimental results and analysis 42-50
4.6 summary 50-52
Chapter summary and Outlook 52-54
5.1 work summary 52-53
5.2 Next outlook 53-54
Thanks 54-55
References 55-59 <br / > Appendix 59-60
detailed summary 60-63
Related dissertations
- The Study on the Risk and Control of Local Government Debt in China
- Study on the Linkage Analysis for17Districts of Hubei Province’s Tourism
- Research on the Development of the Biotechnology Industry in Tianjin
- Research on the Evaluation and Optimization of Financing Environment of Agricultural Enterprise in Heieongjiang Province
- Study on Cultivated Land Use Dynamic Changes and Its Driving Forces of Chengdu City
- Study on the Performance Assessment and Management of the Nodes in Logistics Network in X Logistics Company Base on PCA-DEA Mathematical Models
- Research on the Industrial Competitiveness of Jiangsu Province
- Statistical Theory of Quantitative
- The City Land Utilization Efficiency Research of Anhui Province by PCA-SFA Composite Evaluation Model
- Study on Treasury’s Interest Rate Risk between Exchange and Interbank Bond Markets Based on Parametric Model
- The Research of KPCA and Its External Methods Applied in Processes Monitoring
- Study on Data-based Multimode Industrial Process Monitoring Method
- Research on Intrusion Prevention Technology Based on PCA and Semi-Supervised Clustering
- Research on People Recognition and Tracking Based on Video Streaming
- Research of Face Recognition Based on Modified2DPCA and Neural Network
- Multi-information Fusion Algorithm for Face Recognition Based on Gabor Wavelet
- Design and Implementation of Driver’s Head Posture Estimation
- Face Recognition Based on PCA Algorithm and Face Pose Synthesis
- Quality Assessment of Stereoscopic Image Based on GA and SVM
- Research and Implementation of Pca Based Hyperspectral Image Compression Algorithm