Runtime profitability control for speculative automatic parallelization
Abstract
A compilation method and mechanism for parallelizing program code. A method for compilation includes analyzing source code and identifying candidate code for parallelization. The method includes parallelizing the candidate code, in response to determining said profitability meets a predetermined criteria; and generating object code corresponding to the source code. The generated object code includes both a non-parallelized version of the candidate code and a parallelized version of the candidate code. During execution of the object code, a dynamic selection between execution of the non-parallelized version of the candidate code and the parallelized version of the candidate code is made. Changing execution from said parallelized version of the candidate code to the non-parallelized version of the candidate code, may be in response to determining a transaction failure count meets a pre-determined threshold. Additionally, changing execution from one version to the other may be in further response to determining an execution time of the parallelized version of the candidate code is greater than an execution time of the non-parallelized version of the candidate code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for compilation comprising: analyzing source code; identifying candidate code for parallelization, wherein said candidate code comprises a loop; determining a profitability of parallelizing the candidate code, wherein determining said profitability comprises: parallelizing the loop, in response to determining a predicted execution time of a parallelized version of the loop is less than an execution time of a non-parallelized version of said loop by at least a given amount; and forgoing parallelization of the loop, in response to determining a predicted execution time of said paralleli
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (5)
- "ACME: Adaptive Compilation Made Efficient", Cooper, et al., Jul. 2005, pp. 69-77, http://delivery.acm.org/10.1145/1070000/1065921/p69-cooper.pdf.
- "Compiler Optimization of Embedded Applications for an Adaptive SoC Architecture", Hardnett, et al., Oct. 2006, pp. 312-322, http://delivery.acm.org/10.1145/1180000/1176798/p312-hardnett.pdf.
- "Design and Evaluation of Dynamic Optimizations for a Java Just-in-Time Compiler", Suganuma, et al., Jul. 2005, pp. 732-785, http://delivery.acm.org/10.1145/1080000/1075386/p732-suganuma.pdf.
- "Dynamic Code Management: Improving Whole Program Code Locality in Managed Runtimes", Huang, et al., Jun. 2006, pp. 133-143, http://delivery.acm.org/10.1145/1140000/1134779/p133-huang.pdf.
- Damron, P., et al; "Hybrid Transactional Memory"; ASPLOS XII; San Jose, CA (2006); http://www.princeton.edu/~asplos06/tprogram.html.