Optimal Automatic Multi-pass Shader Partitioning by Dynamic Programming
dc.contributor.author | Heirich, Alan | en_US |
dc.contributor.editor | Michael Meissner and Bengt-Olaf Schneider | en_US |
dc.date.accessioned | 2013-10-28T10:03:38Z | |
dc.date.available | 2013-10-28T10:03:38Z | |
dc.date.issued | 2005 | en_US |
dc.description.abstract | Complex shaders must be partitioned into multiple passes to execute on GPUs with limited hardware resources. Automatic partitioning gives rise to an NP-hard scheduling problem that can be solved by any number of established techniques. One such technique, Dynamic Programming (DP), is commonly used for instruction scheduling and register allocation in the code generation phase of compilers. Since automatic partitioning occurs during the shader compilation process it is natural to ask whether DP is useful for shader partitioning as well as for code generation. This paper demonstrates that these problems are Markovian and can be solved by DP techniques. It presents a DP algorithm for shader partitioning that can be adapted for use with any GPU architecture. Unlike solutions produced by other techniques DP solutions are globally optimal. Experimental results on a set of test cases with a commercial prerelease compiler for a popular high level shading language showed a DP algorithm had an average runtime cost of O(n1:14966) which is less than O(nlogn) on the region of interest in n. This demonstrates that efficient and optimal automatic shader partitioning can be an emergent byproduct of a DP-based code generator for a very high performance GPU. | en_US |
dc.description.seriesinformation | Graphics Hardware | en_US |
dc.identifier.isbn | 1-59593-086-8 | en_US |
dc.identifier.issn | 1727-3471 | en_US |
dc.identifier.uri | https://doi.org/10.2312/EGGH/EGGH05/091-098 | en_US |
dc.publisher | The Eurographics Association | en_US |
dc.subject | Categories and Subject Descriptors (according to ACM CCS): I.3.1 [Computer Graphics]: Hardware Architecture I.3.3 [Computer Graphics]: Picture/Image Generation I.3.6 [Computer Graphics]: Methodology and Technique | en_US |
dc.title | Optimal Automatic Multi-pass Shader Partitioning by Dynamic Programming | en_US |