ACM Home Page
Please provide us with feedback. Feedback
Shape cliques
Full text PdfPdf (285 KB)
Source
ACM SIGAPL APL Quote Quad archive
Volume 35 ,  Issue 3  (September 2007) table of contents
Pages: 7 - 17  
Year of Publication: 2007
ISSN:0163-6006
Author
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 1,   Downloads (12 Months): 10,   Citation Count: 0
Additional Information:

abstract   references   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1286361.1286362
What is a DOI?

ABSTRACT

We introduce shape cliques, a simple way to organize a subset of the arrays appearing in an array-language-based application into sets of identically shaped arrays - shape cliques - and show how a compiler can analyze an application to infer membership in those cliques. We describe an algorithm for performing shape clique inference (SCI), and demonstrate that shape cliques can improve the performance of generated code, by permitting extension of an optimization for removal of run-time checks, and by extending the set of arrays to which optimizations, such as Index Vector Elimination (IVE), can be applied. Implementation of SCI in the APEX APL compiler permitted removal of 25% of run-time checks remaining on 156 benchmarks remaining after other compiler optimizations had eliminated 72% of the 1251 checks present in the original code. In the SAC compiler, IVE using SCI produced typical speedups of 2-14X on benchmarks operating on arrays of non-fixed rank and shape, compared to the operation of IVE in a non-SCI environment. Shape clique inference data can be exploited to allow certain other optimizations, such as loop fusion and withloop folding, to be performed on arrays of statically unknown shape and rank, with the potential for significant reductions in execution time.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
International Standards Organization: International Standard for Programming Language APL. ISO N8485 edn. (1984).
 
2
Hui, R. K., Iverson, K. E.: J Dictionary. (1998).
 
3
 
4
 
5
Cann, D. C.: The optimizing SISAL compiler: Version 12.0. Technical Report UCRL-MA-110080, Lawrence Livermore National Laboratory (1992).
6
 
7
 
8
Shafarenko, A., Scholz, S. B., Herhut, S., Grelck, C., Trojahner, K.: Implementing a numerical solution for the KPI equation using Single Assignment C: lessons and experience. In Butterfield, A., ed.: Implementation and Application of Functional Languages, 17th International Workshop, IFL'05. Volume 4015 of LNCS., Springer (2006) to appear.
 
9
Bernecky, R.: APEX: The APL Parallel Executor. Master's thesis, University of Toronto (1997).
 
10
Bernecky, R., Herhut, S., Scholz, S. B., Trojahner, K., Grelck, C., Shafarenko, A.: Index Vector Elimination - making index vectors affordable. In Horváth, Z., Zsók, V., eds.: Proceedings of the 18th International Symposium on Implementation of Functional Languages (IFL'06), Budapest, Hungary, Eötvös Loránd University (2006) 23--43.
11
12
13
 
14
 
15
Jay, C.: comp.lang.functional:11066 (1998).
16
 
17
 
18
Trojahner, K., Grelck, C., Scholz, S. B.: On Optimising Shape-Generic Array Language Programs using Symbolic Structural Information. In Horváth, Z., Zsók, V., eds.: Implementation and Application of Functional Languages, 18th International Workshop (IFL'06). Budapest, Hungary, September 4006, 2006, Revised Selected Papers. Lecture Notes in Computer Science, Springer-Verlag, Berlin, Heidelberg, New York (2006).