RUNTIME PROFITABILITY CONTROL FOR SPECULATIVE AUTOMATIC PARALLELIZATION
First Claim
1. A method for compilation comprising:
- analyzing source code;
identifying candidate code for parallelization;
determining a profitability of parallelizing the candidate code;
parallelizing said candidate code, in response to determining said profitability meets a predetermined criteria; and
generating object code corresponding to the source code, wherein said object code includes both a non-parallelized version of the candidate code and a parallelized version of the candidate code.
2 Assignments
0 Petitions
Accused Products
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.
-
Citations
20 Claims
-
1. A method for compilation comprising:
-
analyzing source code; identifying candidate code for parallelization; determining a profitability of parallelizing the candidate code; parallelizing said candidate code, in response to determining said profitability meets a predetermined criteria; and generating object code corresponding to the source code, wherein said object code includes both a non-parallelized version of the candidate code and a parallelized version of the candidate code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer readable storage medium comprising program instructions, wherein the program instructions are executable to:
-
analyze source code; identify candidate code for parallelization; determine a profitability of parallelizing the candidate code;
parallelize said candidate code, in response to determining said profitability meets a predetermined criteria; andgenerate object code corresponding to the source code, wherein said object code includes both a non-parallelized version of the candidate code and a parallelized version of the candidate code. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A computing system comprising:
-
a processor; a storage medium configured to store application source code; and a storage medium comprising program instructions, wherein the program instructions are executable by the processor to; analyze source code; identify candidate code for parallelization; determine a profitability of parallelizing the candidate code; parallelize said candidate code, in response to determining said profitability meets a predetermined criteria; and generate object code corresponding to the source code, wherein said object code includes both a non-parallelized version of the candidate code and a parallelized version of the candidate code. - View Dependent Claims (18, 19, 20)
-
Specification