Based on the OpenMP Fortran programming language transactional storage and realization of environmental studies
- Author
- JiaJianBin
- Advisor
- ZhaoKeJia
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP333 Memory
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 49
- Citations
- 0
Abstract
Multi-core processor chip technology to become the new direction of development, it needs to run multi-threaded applications to maximize performance. Multi-core processors has increased the demand for parallel programs. The traditional method of controlling parallel program lock-based synchronization mechanisms, there is a deadlock, escort, priority inversion, the combination of the poor, lock granularity difficult to select other defects. To this end, transactional memory is introduced into the field of parallel programming, in order to overcome the problems caused by the lock mechanism to simplify multi-threaded parallel programming. Currently, research on transactional memory initial success, many research institutions released a variety of algorithms transactional memory system, some researchers began to try to build on this foundation transactional memory programming applications, transactional storage hotspot storage system is also implemented by the transaction extended to the transactional memory programming application tests. This article describes some of the existing transactional memory programming environment, some of the existing research results, based on the transactional memory programming model and environment design and implementation of research and exploration. This is the first thought of the transaction stored in Fortran language to the application made a preliminary attempt to design a set of Fortran language for transactional memory parallel programming interface that implements a source-to-source compiler prototype, built a Fortran language transactional memory programming environment and procedures for transactional storage performance characteristics to consider some basic optimization strategy. Transactional memory for further research, especially in transactional memory provides a usable application test environment. The main work and innovations include: 1, draw Stanford University and Sun and some other research institutions research results, based on OpenMP guidance commands designed for transactional storage in Fortran programming interface. Designed transactional memory programming interface Fortran compiler is implemented in the source-to-source transformation strategy stub, transactional stub interface, and transactional memory runtime library interface. 2, based on CCRG compiler implements FortranTM environment. Analysis of the processing of the source program CCRG realized FortranTM storage API for transaction identification and parsing and conversion, the realization of FortranTM source of transactional stub conversion. Respectively, based on TL2 and TinySTM realized FortranTM transactional storage runtime libraries discussed in Fortran and C / C between transactional memory system function interface. 3, combined with OpenMP processing variables shared property characteristics, in FortranTM proposed and implemented EXCLUDED clause, in order to reduce transactional read and write operations; combine the characteristics of OpenMP scheduling cycle to achieve a transactional variable cycle length transaction two treatment strategies to optimize and adjust transactional application performance. 4, the source-to-source for FortranTM conversion function to generate an executable program correctness, and FortranTM parallel performance, EXCLUDED clause with the transaction length on the performance of transactional procedures were validated and tested. Test results show that, FortranTM basic realization of the source-to-source transformation functions, and can generate the correct executable program; EXCLUDED clause for reducing transactional read and write has a distinct role, different length on transactional matters have a significant impact on application performance.
Table of contents
Abstract 9-11
ABSTRACT 11-13
first chapter 13-21
1.1 topics background 13-16 < br /> 1.1.1 multicore processor technology 13-14
1.1.2 Parallel Programming plight 14-15
1.1.3 introduction and transactional storage ideas Development 15-16
1.2 Research 16-18
1.2.1 Intel STM compiler prototype version 16-17
1.2.2 IBM C / C Transaction Memory For AIX 17
1.2.3 Stanford OpenTM 17
1.2.4 RSTM 17-18
1.2.5 GCC- TM 18
1.2.6 TinySTM TANGER 18
1.3 This research and innovation 18-19
1.4 This structure 19 - 21
Chapter transactional memory programming interface research 21-31
2.1 transactional storage introduce 21-24
2.1.1 The basic idea of ??transactional memory 21
2.1.2 transactional memory implementations 21-22
2.1.3 transactional memory system in the basic concepts of 22-23
2.1.4 Affairs The implementation process and life cycle 23-24
2.2 on transactional memory programming considerations 24-26
2.2.1 affairs in existing procedures in the operating environment adaptability 24
2.2.2 Programming mode: Language Support vs library support 24-25
2.2.3 compiler can complete the work 25-26
2.3 transactional memory programming interface research 26-31
2.3.1 typical transaction memory programming interface types 26-27
2.3.2 three kinds of transactional memory programming interface compared 27-31
Chapter OpenMP-based transactional storage FORTRAN language programming environment designed 31-40
3.1 Basic design framework 31-32
3.2 FortranTM API design 32-36
3.2.1 FortranTM API syntax 32-33
3.2.2 FortranTM API for Source-to-Source Conversion 33-35
3.2.3 Section Summary 35-36
3.3 transactional memory system runtime library interfaces 36-39
3.3.1 STM provides transactional primitives Interface 36-37
3.3.2 STM system operating mechanism 37-38
3.3.3 FortranTM runtime library interface design 38-39 <br / > 3.4 Summary 39-40
Chapter FortranTM realization. 40-58
4.1 Sage on the source of the processing 40-43 <br / > 4.1.1 Sage parsing process 40-41
4.1.2.d ep paper form 41-43
4.1.3 omp2f reconstruction process 43
4.2 compiler front-end: API recognition and representation in the syntax tree 43-46
4.2.1 Definition token and keywords 43-44
4.2 .2 add syntax tree node 44
4.2.3 grammar rules 44-46
4.2.4 Section Summary 46
4.3 syntax tree re- Structure: transactional staked 46-52
4.3.1 tectonic transaction execution environment 46-48
4.3.2 affairs begin and end 48-49 < br /> 4.3.3 transactional read and write 49-51
4.3.4 Section Summary 51-52
4.4 STM runtime library interface 52 -56
4.4.1 Fortran-C interface, 52-53
4.4.2 Based on the TL2 transactional runtime interface 53-55
4.4.3 The transactional based TinySTM runtime interface 55-56
4.5 Chapter Summary 56-58
Chapter FortranTM reduce transaction overhead strategy 58 - 67
5.1 Stanford STAMP transactional memory test program to read and write overhead analysis. 58
5.2 excluded clause, the introduction and processing 58-61
5.2.1 Syntax and Semantic 59-60
5.2.2 excluded semantic achieve 60-61
5.3 transactional cycle length transaction processing strategy 61-65
5.3.1 Loop unrolling 62-63
5.3.2 loop blocking 63-65
5.3.3 length about matters considered 65
5.4 Summary 65-67
Chapter FortranTM test 67-72
6.1 Functional Test 67-68
6.2 performance test 68-72
6.2.1 Parallel performance test 68-69
6.2.2 excluded clause performance test 69-70
6.2.3 affairs length the impact on application performance 70-72
Chapter VII Conclusion 72-74
7.1 Work Summary 72-73
7.2 nbsp next step ; 73-74
Thanks 74-75
References 75-79
author during term academic achievements 79
Related dissertations
- Research on Conflict Management Strategies in Multicore-oriented Software Transactional Memory
- A Distributed Programming Framework Based on Transactional Memory
- Cache Coherence Techniques for Chip Multiprocessor Architecture
- Study on Parallel Programming Models
- Study on Transactional Memory Programming and Software Library Optimization of Tera-Flops Computer KD-50-I
- Certifying Concurrent Porgrams Using Transactional Memory
- Verifying Parallel Programs Using Software Transactional Memory
- Research on Key Techniques for NUMA-aware Transactional Memory
- Research on Nested Transactional Memory of Object-oriented Program
- The Research on the Algorithms of Mining Association Rules
- Research on Nested Transactional Memory
- Support for scalable speculative parallelization transactional storage architecture design and performance evaluation