Parallel schedule synthesis for attribute grammars
Authors:
Open Access
- 23 February 2013
- conference paper
- Published by Association for Computing Machinery (ACM)
- Vol. 48 (8) , 187-196
Abstract
We examine how to synthesize a parallel schedule of structured traversals over trees. In our system, programs are declaratively specified as attribute grammars. Our synthesizer automatically, correctly, and quickly schedules the attribute grammar as a composition of parallel tree traversals. Our downstream compiler optimizes for GPUs and multicore CPUs. We provide support for designing efficient schedules. First, we introduce a declarative language of schedules where programmers may constrain any part of the schedule and the synthesizer will complete and autotune the rest. Furthermore, the synthesizer answers debugging queries about how schedules may be completed. We evaluate our approach with two case studies. First, we created the first parallel schedule for a large fragment of CSS and report a 3X multicore speedup. Second, we created an interactive GPU-accelerated animation of over 100,000 nodes.Keywords
This publication has 16 references indexed in Scilit:
- Elixir2012
- Two for the price of one2011
- Combinatorial sketching for finite programs2006
- Automatic pool allocation2005
- Cilk1995
- A survey of parallel attribute evaluation methodsLecture Notes in Computer Science, 1991
- An introduction to Prolog IIICommunications of the ACM, 1990
- Ordered attributed grammarsActa Informatica, 1980
- Automatic data structure selectionCommunications of the ACM, 1978
- The Organization of Computations for Uniform Recurrence EquationsJournal of the ACM, 1967