Design and Implementation of Co-Array Fortran Compiler
- Author
- TangPeiRong
- Advisor
- YangXueJun , HuangChun
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP314 Compiler,interpreter
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 96
- Citations
- 0
- Co-Array Fortran
- image
- source-to-source
- GUN Fortran
- one-side communication
- intrinsic procedure
- CCRG-cafc
Abstract
The emerging scalable parallel programming interface - Co-Array Fortran(CAF)is wellsuited for both shared memory systems and distributed memory systems. The global address space programming model that CAF uses can abstract away much of the complexity of communication in the single-program-multiple-data parallel programs. It leaves the details of communication to the compiler which reduces the complexity of writing programs and brings better programmability.In this paper, we do a comprehensive research on Co-Array Fortran. The paper investigates the CAF language in detail, and presents a comparative study of Co-Array Fortran and other parallel interfaces in aspects of programming model, language mechanism etc.. Based on these, a framework of our CAF compiler—CCRG-cafc is brought forward. Then, we discuss the key features of the implementation of CAF compiler, contrive a scheme for representing co-array syntax at Fortran 90 level and present the communication strategies. Guided by the scheme and strategies, we design and implement a portable CCRG-cafc compiler based on GUN Fortran compiler. Our compiler performs source-to-source translation from CAF to Fortran 90 with calls to runtime library primitives. Meanwhile, the runtime library is implemented to perform the communications and synchronizations to guarantee the efficient execution of the CAF programs.To compare the performance of CAF, OpenMP and MPI we test several case programs on an Itanium cluster. The experiments show that our CCRG-cafc compiles CAF programs into code that delivers performance roughly equal to that of MPI programs and OpenMP programs. Furthermore, CAF potentially improves the performance due to the flexible synchronization and explicit control on shared data distribution.
Table of contents
Abstract 9-10
ABSTRACT 10-11
Chapter Introduction 11-15
the background and significance of the
1.1 topics 11-12
1.2 Research 12-13
1.2.1 Cray CAF compiler 12-13
1.2.2 Rice cafc 13
1.3 major work and innovation 13-14
1.4 This article structure 14-15
the
chapter II, Co-Array Fortran compiler framework design 15-26
2.1 a support SPMD programming style language-Co-Array Fortran 15-18
2.1.1 program image 15-16
2.1.2 co-array data declarations and access 16-17
2.1.3 inherent process 17-18
2.2 several parallel programming interface 18-22
2.2.1 several API Profile 18-19
2.2.2 compare 19-21
2.2.3 summarizes 21-22
2.3 Co-Array Fortran programming process 22-24
2.3.1 data divided 23
2.3.2 Communication 23-24
2.4 CCRG-cafc the overall framework of the compiler 24-26
Chapter Co-Array Fortran compiler key technology research 26-38
3.1 co-array data access 26-32
3.1.1 co-array data access patterns 26
multidimensional support
3.1.2 co-array data and mapping 26-27
3.1.3 remote data access optimization 27-32
3.2 data communication select and optimize 32-38
3.2.1 Communication strategy to select 32-34
3.2.2 worker thread communication mode 34-36
3.2.3 synchronous 36
3.2.4 overlap communication and computation optimization strategy 36-38
Chapter CCRG-cafc compiler to achieve 38-53
4.1 co-array syntax recognition and information recording 38-45
4.1.1 scanner 38
4.1.2 parser 38-39
4.1.3 name processing and grammar checker 39-40
4.1.4 abstract syntax tree structure 40-45
4.2 syntax converter realization 45-47
4.2.1 caf2f 45-46
4.2.2 intermediate file organization 46-47
4.3 runtime implementations 47-53
4.3.1 data types 47-49
4.3.2 environment initialization and end 49
4.3.3 remote data communication 49-50
4.3.4 query function 50-51
4.3.5 synchronous 51-53
Chapter test results and the performance evaluation 53-59
5.1 test method 53
5.2 test results and analysis of evaluation 53-58
5.2.1 cube grid finite difference 53-55
5.2.2 simpson quadrature 55-56
5.2.3 PI value calculation 56-57
5.2.4 Matrix multiplication 57-58
5.3 Summary 58-59
Chapter VI Conclusion 59-61
6.1 work summarizes 59
6.2 Looking 59-61
Acknowledgements 61-62
the
References 62-65
the
author achieved academic achievements during the study period 65
Related dissertations
- Research on the Tourism Destination Image Cognition
- Remote Sensing Image Using in the Land Change Survey and Monitoring Applications
- Identity and Image of Mainlanders in English Newspaper of Hong Kong
- The Analysis of the Filtering Model of Campus Network Security and Its Key Algorithm
- Design and Implementation of Classification on Content-based Image Retrieval
- A Research of Audio and Image Resource Management Mechanism on Virtual Desktop
- Research on Image Resources Intelligent Identify in Cloud Manufacturing System Based on BP ANN
- Design and Implementation of Vehicle Drivers Imaging System
- Enjoy the visual point - regression art junior high school art teaching exploration
- Research on Students, Ability of Reading Map in Geography Teaching of Junior High School
- On the Image of Confucian Teachers in the Song Dynasty
- The Study of the Image Creation of Chinese Local Governments Spokesperson
- The Effect of Illustration on High School Students' Eye Movements in Reading Newspapers
- On Sartre's Theory of Imagination
- Research on Zhong Kui
- The formation of image - Moscow Russian eyes from the perspective of historical and cultural analysis of the image of the Moscow
- Aesthetical Perspective of Han Nationality Wedding Ceremony
- A Study on Historical Data of Han Dynasties' Design
- Analysis of the Cultural Charm of Chinese Zodiac Image in Modern Design
- Designed to Promote the Image of Jinan BRT