Abstract
This paper introduces the Weight Finder, an advanced profiler for Fortran programs, which is based on a von Neumann architecture. Existing Fortran codes are generally too large to analyze fully in depth with respect to performance tuning. It is the responsibility of the Weight Finder to detect the most important regions of code in the program, as far as execution time is concerned. Program transformation systems, compilers and users may then subsequently concentrate their optimization efforts upon these areas in code.
Furthermore program unknowns, such as loop iteration counts, true ratios and frequency information, are derived. Analysis and prediction systems require concrete values for these unknowns in order to provide reasonable accurate results.
Animation, simulation, debugging and trace based tools may use the profile data as being derived by the Weight Finder in order to detect program parts which are never executed, simulate the program’s control flow, etc.
This tool is based on an optimized instrumented profile run. Several optimizations are shown which eliminate large portions of the instrumentation code, thus decreasing profile run-time and memory requirements, and improving the measurement accuracy. It is shown how the profile data can be adapted for program transformations to the original Fortran program without redoing the profile run.
The Weight Finder is a 10000 line software package which is fully integrated under the Vienna Fortran Compilation System.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
A. Aho, R. Sethi, and J. Ullman. Compilers, Principles, Techniques and Tools. Series in Computer Science. Addison Wesley, 1988.
G. Balbo and G. Serazzi. Asymptotic Analysis of Multiclass Closed Queueing Networks: Multiple Bottlenecks. Technical Report, Dipartimento di Elettronica, Politecnico di Milano, March 1992.
Bell Laboratories, Murray Hill,NJ. prof command,January 1979. section 1.
B. Chapman, S. Benkner, R. Blasko, P. Brezany, M. Egg, T. Fahringer, H.M. Gemdt, J. Hulman, B. Knaus, P. Kutschera, H. Moritsch, A. Schwald, V. Sipkova, and H.P. Zima. VIENNA FORTRAN Compilation System - Version 1.0 - User’s Guide, Jan. 1993.
B. Chapman, T. Fahringer, and H. Zima. Automatic Support for Data Distribution. In Proc. of the Sixth Annual Workshop on Languages and Compilers for Parallel Computing, Portland, Oregon, Aug. 1993.
B. Chapman, P. Mehrotra, and H. Zima. Vienna Fortran - A Fortran Language Extension for Distributed-Memory Multiprocessors. Elsevier Science Publishers, Amsterdam, 1991. Also: ICASE Report No. 91–72, Contract No. NAS1–18605, NASA, Langley Research Center, Hampton, VA, 1991.
B. Chapman, P.Mehrotra, and H.Zima. P.ogramming in Vienna Fortran. Scientific Programming, 1(1):31 — 50, August 1992.
T. Fahringer. Automatic Cache Performance Prediction in a Parallelizing Compiler. In Proc. of the AICA’93 - International Section, Lecce, Italy, September 1993.
T. Fahringer. Automatic Performance Prediction for Parallel Programs on Massively Parallel Computers. PhD thesis, University of Vienna, Department of Software Technology and Parallel Systems, to appear (1993).
T. Fahringer, R. Blasko, and H. Zima. Automatic Performance Prediction to Support Parallelization of Fortran Programs for Massively Parallel Systems. In ACM International Conference on Supercomputing 1992, pages 347–356, Washington D.C., July 1992.
T. Fahringer and H. Zima. A Static Parameter based Performance Prediction Tool for Parallel Programs. Invited Paper, in Proc. of the 7th ACM International Conference on Supercomputing 1993, Tokyo, Japan, July 1993.
H.M. Gemdt. Parallelizationfor Distributed-Memory Multiprocessing Systems. PhD thesis, University of Bonn, December 1989.
S.L. Graham, P.B. Kessler, and M.K. McKusick. gprof: A Call Graph Execution Profiler. In Proceedings of the SIGPLAN 82 Symposium on Compiler Construction,pages 120–126, June 1982. SIGPLAN Notices, Vol.17, No. 6.
D.E. Knuth. An empirical study of FORTRAN programs. Software–Practice and Experience, (1): 105–133, 1971.
P. Lenzi and G. Serazzi. ParMon: Parallel Monitor. Technical Report N3/95, Dipartimento di Elettronica, Politecnico di Milano, October 1992.
K.S. McKinley. Automatic and Interactive Parallelization. PhD thesis, Rice University, CRCP, Houston, TX, April 1992.
D.A. Padua and M. Wolfe. Advanced compileroptimizations for supercomputers. In Comm. ACM, pages 1184–1201, 1986.
C.D. Polychronopoulos. Parallel Programming and Compilers. Kluwer Academic Publisher, Boston, MA, 1988.
W.H. Press, B.P. Flannery, S.A. Teukolsky, and W.T. Vetterling. Numerical Recipes in C; The Art of Scientific Computing. Cambridge University Press, 1988.
V. Sarkar. Determining Average Program Execution Times. In ACM International Conference on Supercomputing, 1989.
V. Sarkar. Partitioning and Scheduling Parallel Programs for Multiprocessor. The MIT Press, Cambridge, Massachusetts, 1989.
E. Satterthwaite. Debugging Tools for High Level Languages. Software–Practice and Experience, (2): 197–217, 1972.
K.Y. Wang. A Performance Prediction Model for Parallel Compilers. Technical Report, Computer Science Dept., Purdue University, November 1990. Technical Report CSD-TR1041, CAPO Report CER-90–43.
M. Wolfe. Optimizing Supercompilers for Supercomputers. The MIT Press, Cambridge, Massachusetts, 1989.
H. Zima, H.-J. Bast, and M. Gemdt. SUPERB–A Tool For Semi-Automatic MIMD/SIMD Parallelization. Parallel Computing, pages 1–18, 1988.
H. Zima and B. Chapman. Compiling for Distributed-Memory Systems. Proceedings of the IEEE Special Section on Languages and Compilers for Parallel Machines,Febmary 1993. to appear.
H. Zima, P. Brezany, B. Chapman, P. Mehrotra, and A. Schwald. Vienna Fortran - a language specification. Technical report, ICASE, Hampton,VA, 1992. ICASE Internal Report 21.
H. Zima and B. Chapman. SupercompilersforParallel and Vector Computers. ACM Press Frontier Series. Addison-Wesley, 1990.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1994 Friedr. Vieweg & Sohn Verlagsgesellschaft mbH, Braunschweig/Wiesbaden
About this chapter
Cite this chapter
Fahringer, T. (1994). The Weight Finder — An Advanced Profiler for Fortran Programs. In: Keßler, C.W. (eds) Automatic Parallelization. Vieweg+Teubner Verlag. https://doi.org/10.1007/978-3-322-87865-6_1
Download citation
DOI: https://doi.org/10.1007/978-3-322-87865-6_1
Publisher Name: Vieweg+Teubner Verlag
Print ISBN: 978-3-528-05401-4
Online ISBN: 978-3-322-87865-6
eBook Packages: Springer Book Archive