Patents
US 8,359,587 B2#15741154 Most CitedActiveUnited States (USPTO)Utility

Runtime profitability control for speculative automatic parallelization

7Forward Citations (#15741154 Global)
0.5/yrCitation Velocity (#14799477 Global)
1.56Citation PageRank (#21538262 Global)
16Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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 ↗

References Cited — Backward Prior Art (16)

PatentTitleYearCitations
US 6,651,246 B1Loop allocation for optimizing compilers2003135
US 6,654,954 B1Computer system, program product and method utilizing executable file with alternate program code attached as a file attribute2003119
US 2004049667 A1Method of patching compiled and linked program code comprising instructions which are grouped into bundles—54
US 6,880,045 B2Multi-processor computer system with transactional memory200565
US 2005097509 A1Methods and products for processing loop nests—32
US 6,938,130 B2Method and apparatus for delaying interfering accesses from other threads during transactional program execution200590
US 2006026580 A1Method and related system of dynamic compiler resolution—20
US 2006026575 A1Method and system of adaptive dynamic compiler resolution—20
US 2007050762 A1Build optimizer tool for efficient management of software builds for mobile devices—95
US 7,395,531 B2Framework for efficient code generation using loop peeling for SIMD loop code with multiple misaligned statements200836
US 2008163185 A1Delay-load optimizer—38
US 7,426,724 B2Optimized chaining of vertex and fragment programs200851
US 7,530,069 B2Program parallelizing apparatus, program parallelizing method, and program parallelizing program200932
US 7,543,282 B2Method and apparatus for selectively executing different executable code versions which are optimized in different ways200942
US 7,818,729 B1Automated safe secure techniques for eliminating undefined behavior in computer software2010107
US 7,853,934 B2Hot-swapping a dynamic code generator201026

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.