Preferential execution of method calls in hybrid systems
First Claim
Patent Images
1. A system for running distributed programs in hybrid system, comprising:
- a processor in the hybrid system running an application program; and
an affinity-based preferential call module operable to intercept a program'"'"'s method call in runtime, the affinity-based preferential call module further operable to look up a symbolic reference associated with the trapped method call for one or more platform-specific implementations, the affinity-based preferential call module further operable to select a platform-specific implementation from said one or more platform-specific implementations based on affinity measure associated with said one or more platform-specific implementations, the affinity measure indicating how efficiently said one or more platform-specific implementations run on respective one or more platforms in the hybrid system, the affinity-based preferential call module further operable to replace the symbolic reference associated with the trapped method call with a direct reference to the selected platform-specific implementation,wherein the hybrid system comprises at least a general-purpose processor and a special-purpose processor, and said one or more platform-specific implementations comprise at least code programmed to execute on the special-purpose processor.
0 Assignments
0 Petitions
Accused Products
Abstract
Affinity-based preferential call technique, in one aspect, may improve performance of distributed applications in a hybrid system having heterogeneous platforms. A segment of code in a program being executed on a processor may be intercepted or trapped in runtime. A platform is selected in the hybrid system for executing said segment of code, the platform determined to run the segment of code with best efficiency among a plurality of platforms in the hybrid system. The segment of code is dynamically executed on the selected platform determined to run the segment of code with best efficiency.
-
Citations
16 Claims
-
1. A system for running distributed programs in hybrid system, comprising:
-
a processor in the hybrid system running an application program; and an affinity-based preferential call module operable to intercept a program'"'"'s method call in runtime, the affinity-based preferential call module further operable to look up a symbolic reference associated with the trapped method call for one or more platform-specific implementations, the affinity-based preferential call module further operable to select a platform-specific implementation from said one or more platform-specific implementations based on affinity measure associated with said one or more platform-specific implementations, the affinity measure indicating how efficiently said one or more platform-specific implementations run on respective one or more platforms in the hybrid system, the affinity-based preferential call module further operable to replace the symbolic reference associated with the trapped method call with a direct reference to the selected platform-specific implementation, wherein the hybrid system comprises at least a general-purpose processor and a special-purpose processor, and said one or more platform-specific implementations comprise at least code programmed to execute on the special-purpose processor. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A non-transitory computer readable storage medium storing a program of instructions executable by a machine to perform a method of running distributed programs in hybrid system having heterogeneous platforms, the method comprising:
-
trapping a program'"'"'s method call in runtime of a program executing on a processor; looking up a symbolic reference associated with the trapped method call for one or more platform-specific implementations; selecting a platform-specific implementation from said one or more platform-specific implementations based on affinity measure associated with said one or more platform-specific implementations, the affinity measure indicating how efficiently said one or more platform-specific implementations run on respective one or more platforms in said hybrid system; returning a direct reference to the selected platform-specific implementation; and replacing the symbolic reference associated with the trapped method call with the returned direct reference to the selected platform-specific implementation, wherein the hybrid system comprises at least a general-purpose processor and a special-purpose processor, and said one or more platform-specific implementations comprise at least code programmed to execute on the special-purpose processor. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer readable storage medium storing a program of instructions executable by a machine to perform a method of affinity-based preferential call technique for improving performance of distributed applications in a hybrid system having heterogeneous platforms, the method comprising:
-
intercepting in runtime a segment of code in a program being executed on a processor; determining a platform in the hybrid system for executing said segment of code, the platform determined to run the segment of code with best efficiency among a plurality of platforms in the hybrid system, wherein said segment of code is dynamically executed on said platform determined to run the segment of code with best efficiency, wherein the hybrid system comprises at least a general-purpose processor and a special-purpose processor, and the segment of code has an associated platform-specific implementation programmed to execute on the platform determined to run the segment of code with best efficiency. - View Dependent Claims (14, 15, 16)
-
Specification