Patent ID: 8108844

Claim:
A computer-implemented method configured to be performed by a runtime system at a parallel-processing computer system that includes multiple types of processing elements, comprising: at runtime: receiving one or more operation requests issued by an application; dynamically choosing a respective type of processing element identifying at least one of the one or more types of processing elements for at least one of the one or more operation requests, the at least one operation request corresponding to an intrinsic operation, wherein the intrinsic operation is an arithmetic operation, and the respective type of processing element is one of the multiple types of processing elements, which include sing-core/multi-core central processing units, graphics processing units and single-core/multi-core co-processors; dynamically identifying, from a library, a precompiled, processor-specific compute kernel corresponding to the intrinsic operation of the at least one operation request, the library comprising a plurality of processor-specific compute kernels corresponding to a plurality of intrinsic operations; and dynamically preparing one or more compute kernels for the at least one operation request, wherein the one or more compute kernels include the at least one precompiled, processor-specific compute kernel, and are configured to execute on the respective type of processing element.