A Statement-Migrating Based Loop Transformation Approach to Multi-Core SIMD Architecture
- Author
- PanLinFeng
- Advisor
- GuoMinYi
- School
- Shanghai Jiaotong University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 33
- Citations
- 0
Abstract
Multimedia SIMD extensions are commonly employed today to speed up media processing. When vectorizing for SIMD architectures, one of the major issues is the handling of memory alignment. Prior re-search has focused on either vectorizing loops with all memory references being properly aligned, or introducing extra operations to deal with the misaligned memory references. On the other hand, multi-core SIMD ar-chitectures require coarse-grain parallelism, but most of the traditional applications are designed as single thread. So an important problem that, how to parallelize and vectorize loop nests with the awareness of data misalignments reduction, still remains unaddressed.This paper presents a framework for nested loop transformation, in-cluding dependence graph and offset-collection construction, analysis, transformation, and code generation. We propose a statement-migrating based loop transformation scheme that systematically maximizes the par-allelism of outermost loops, while the misaligned memory references in innermost loops are reduced. The core of our technique is to align each level of loops in the nest, considering the constraint of dependence rela-tions. To reduce the data misalignments, we established a mathematical model with a concept of offset-collection and proposed an effective heu-ristic algorithm. For coarser-grain parallelism, we proposed some rules to analyze the outermost loop. And when transformations are applied, the inner loops also are involved to maximize the parallelism. To avoid in-troducing more data misalignments, the involved innermost loop is han-dled distinguishingly from other levels of loops. Based on the above transformation results, we then introduce the SIMD code generation in detail. Experimental results indicate 7% to 37% (averagely 18.4%) mis-aligned memory references can be reduced. The simulations on CELL show that speedup as 1.1 can be reached by reducing the misaligned data, while 6.14 is reached by enhancing the parallelism for multi-core, with a total average speed up as 6.67.
Table of contents
Abstract 3-5
Abstract 5-9
1. Introduction 9-13
1.1 Background and topics of significance 9-10
1.2 of this article content and research methods 10-11
1.3 in this article to obtain research results and innovative 11-12
1.4 papers organizational structure 12-13
2. research status and background to the issue 13-17
2.1 cycle transform 13-14
2.2 data alignment technology 14
2.3 SIMD technology 14
2.4 multi-core processors 14-15
2.5 SIMD structure 15-16
2.6 Summary 16-17
3. loop transform the theoretical basis 17-27
3.1 dependence graph defined 17
3.2 migration operation 17-19
3.3 ordinary road and ring 19-21
3.4 simple loop transformation 21-26
3.4.1 single dependent ring 21-22
3.4.2 rely ring 22-25
3.4.3 explicit parallelism 25-26
3.5 Summary 26-27
4. reduce data alignment operation 27-32
4.1 offset collection 27
4.2 The problem definition is 27-29
4.3 brute force optimal solution algorithm 29-30
4.4 heuristic solution algorithm 30-31
4.5 Summary 31-32
5. consider the data alignment of the outer loop transform 32-35
5.1 to the non-cyclic graph transformation 32-33
5.2 dependent on the ring 33-34
5.3 Summary 34-35
the SIMD code generation 35-39
6.1 assumptions and mark 35
6.2 DAG on the SIMD- 35-37
6.3 ring on the SIMD- 37-38
6.4 Summary 38-39
loop transformation complete process 39-42
7.1 loop transformation process 39-40
7.2 complete cycle of transformation example 40-42
experimental evaluation 42-51
8.1 experimental platform 42
8.2 test cycle generation 42
8.3 experimental data 42-50
8.3.1 improve the degree of parallelism analysis 42-45
8.3.2 Data reduction analysis of the alignment to be 45-48
the
8.3.3 parallelism The acceleration ratio analysis 48-50
8.4 Summary 50-51
full text summary 51-53
9.1 of the main theories and methods 51-52
9.2 Looking 52-53
References 53-55
thank 55-56
pursue a degree during the academic catalog 56-59