Patents
US 8,739,141 B2#13734573 Most CitedActiveUnited States (USPTO)Utility

Parallelizing non-countable loops with hardware transactional memory

8Forward Citations (#13734573 Global)
0.7/yrCitation Velocity (#11463054 Global)
1.63Citation PageRank (#20094716 Global)
27Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A system and method for speculatively parallelizing non-countable loops in a multi-threaded application. A multi-core processor receives instructions for a multi-threaded application. The application may contain non-countable loops. Non-countable loops have an iteration count value that cannot be determined prior to the execution of the non-countable loop, a loop index value that cannot be non-speculatively determined prior to the execution of an iteration of the non-countable loop, and control that is not transferred out of the loop body by a code line in the loop body. The compiler replaces the non-countable loop with a parallelized loop pattern that uses outlined function calls defined in a parallelization library (PL) in order to speculatively execute iterations of the parallelized loop. The parallelized loop pattern is configured to squash and re-execute any speculative thread of the parallelized loop pattern that is signaled to have a transaction failure.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 8.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for parallelizing program code of an application, the method comprising: examining one or more program instructions of a multi-threaded application; identifying a non-countable loop pattern, wherein the non-countable loop includes a first function that uses a loop index variable as a parameter, wherein the first function performs input/output and modifies data, wherein identifying the non-countable loop pattern comprises determining whether the non-countable loop pattern meets a set of conditions including: a) an iteration count of the non-countable loop pattern cannot be determined b

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (27)

PatentTitleYearCitations
US 4,825,360 ASystem and method for parallel processing with mostly functional languages198953
US 5,361,354 AOptimization of alternate loop exits199441
US 5,446,862 ASystem and method for granting or preventing atomic or nonatomic memory access requests to shared memory regions199522
US 6,286,104 B1Authentication and authorization in a multi-tier relational database management system2001333
US 2002129228 A1Mechanism to avoid explicit prologs in software-pipelined loops—5
US 6,539,541 B1Method of constructing and unrolling speculatively counted loops2003120
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,708,331 B1Method for automatic parallelization of software200469
US 6,795,908 B1Method and apparatus for instruction execution in a data processing system200430
US 6,880,045 B2Multi-processor computer system with transactional memory200565
US 6,938,130 B2Method and apparatus for delaying interfering accesses from other threads during transactional program execution200590
US 2006004996 A1Macroscalar processor architecture—120
US 2006026575 A1Method and system of adaptive dynamic compiler resolution—20
US 2006026580 A1Method and related system of 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 2009064119 A1Systems, Methods, And Computer Products For Compiler Support For Aggressive Safe Load Speculation—16
US 7,530,069 B2Program parallelizing apparatus, program parallelizing method, and program parallelizing program200932

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.