Research Article
Using knowledge-based systems for research on parallelizing compilers
Article first published online: 21 MAR 2001
DOI: 10.1002/cpe.563
Copyright © 2001 John Wiley & Sons, Ltd.
Issue
1532-0634/asset/cover.gif?v=1&s=6094df24c795ce080ff6df6ff3b6bcec19adb708)
Concurrency and Computation: Practice and Experience
Volume 13, Issue 3, pages 181–208, March 2001
Additional Information
How to Cite
Yang, C.-T., Tseng, S.-S., Fann, Y.-W., Tsai, T.-K., Hsieh, M.-H. and Wu, C.-T. (2001), Using knowledge-based systems for research on parallelizing compilers. Concurrency and Computation: Practice and Experience, 13: 181–208. doi: 10.1002/cpe.563
Publication History
- Issue published online: 21 MAR 2001
- Article first published online: 21 MAR 2001
- Manuscript Revised: 23 NOV 2000
- Manuscript Received: 18 NOV 1999
Funded by
- The National Council of the Republic of China. Grant Numbers: NSC86-2213-E009-081, NSC87-2213-E009-023
- Abstract
- References
- Cited By
Keywords:
- parallelizing compiler;
- knowledge-based system;
- loop parallelization;
- multithreaded OS;
- program restructuring
Abstract
The main function of parallelizing compilers is to analyze sequential programs, in particular the loop structure, to detect hidden parallelism and automatically restructure sequential programs into parallel subtasks that are executed on a multiprocessor. This article describes the design and implementation of an efficient parallelizing compiler to parallelize loops and achieve high speedup rates on multiprocessor systems. It is well known that the execution efficiency of a loop can be enhanced if the loop is executed in parallel or partially parallel, such as in a DOALL or DOACROSS loop. This article also reviews a practical parallel loop detector (PPD) that is implemented in our PFPC on finding the parallelism in loops. The PPD can extract the potential DOALL and DOACROSS loops in a program by verifying array subscripts. In addition, a new model by using knowledge-based approach is proposed to exploit more loop parallelisms in this paper. The knowledge-based approach integrates existing loop transformations and loop scheduling algorithms to make good use of their ability to extract loop parallelisms. Two rule-based systems, called the KPLT and IPLS, are then developed using repertory grid analysis and attribute-ordering tables respectively, to construct the knowledge bases. These systems can choose an appropriate transform and loop schedule, and then apply the resulting methods to perform loop parallelization and obtain a high speedup rate. For example, the IPLS system can choose an appropriate loop schedule for running on multiprocessor systems. Finally, a runtime technique based on the inspector/executor scheme is proposed in this article for finding available parallelism on loops. Our inspector can determine the wavefronts of a loop with any complex indirected array-indexing pattern by building a DEF-USE table. The inspector is fully parallel without any synchronization. Experimental results show that the new method can resolve any complex data dependence patterns where no previous research can. One of the ultimate goals is to construct a high-performance and portable FORTRAN parallelizing compiler on shared-memory multiprocessors. We believe that our research may provide more insight into the development of a high-performance parallelizing compiler. Copyright © 2001 John Wiley & Sons, Ltd.

1532-0634/asset/olbannerleft.gif?v=1&s=a4e4e145787de94e1d91eaab3c8c29d8a9d96a26)