# US 2013/0254783 A1 · Application Program Interface of a Parallel-Processing Computer System that Supports Multiple Programming Languages

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0254783 A1
- Document ID: US20130254783A1
- Status: Published application
- Kind: A1
- Application number: 13/892,145
- Filed: 2013-05-10
- Published: 2013-09-26
- Earliest claimed: 2006-06-20
- Assignees: Google Inc.
- Applicants: Google Inc.
- Inventors: Morgan S. McGuire; Christopher G. Demetriou; Brian K. Grant; Matthew N. Papakipos
- Web page: https://patentgrep.com/patent/US20130254783A1

## CPC

- G06F 9/54: Interprogram communication
- G06F 8/45: {Exploiting coarse grain parallelism in compilation, i.e. parallelism between groups of instructions}
- G06F 9/45516: {Runtime code conversion or optimisation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A runtime system implemented in accordance with the present invention provides an application platform for parallel-processing computer systems. Such a runtime system enables users to leverage the computational power of parallel-processing computer systems to accelerate/optimize numeric and array-intensive computations in their application programs. This enables greatly increased performance of high-performance computing (HPC) applications.

## Claims

### Claim 1

A computer-implemented method, comprising:
in a runtime system configured to run on a parallel-processing computer system that includes a first processing element and a second processing element, the two processing elements having different instruction set architectures, and memory storing one or more programs for execution by the processing elements, at runtime:
receiving from an application executing in conjunction with the runtime system one or more application program interface calls to the runtime system, the application program interface calls corresponding to one or more operation requests to be performed by the parallel-processing computer system;
generating a programming language-independent, processor-independent intermediate representation for at least one of the operation requests using an application program interface module associated with the runtime system, wherein the intermediate representation includes a first set of instructions for generating optimized compute kernels for the first processing element and a second set of instructions for generating optimized compute kernels for the second processing element, respectively;
selecting one of the first processing element and the second processing element based on a current state of the runtime system;
generating one or more compute kernels from the intermediate representation in accordance with the instruction set architecture of the selected processing element and a corresponding set of instructions for generating optimized compute kernels for the selected processing element; and
executing the one or more compute kernels on the selected processing element.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
identifying from a plurality of language-specific application program interface modules an application program interface module; and
generating the intermediate representation using the identified application program interface module.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the intermediate representation includes at least one object that corresponds to a function call to the identified application program interface module in the application.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the intermediate representation includes at least one object that has an associated handle and the associated handle is embedded in at least one of the one or more operation requests.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the application has an access to the at least one of the intermediate representation objects through its associated handle.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein one of the operation requests is a request to initialize the runtime system.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein one of the operation requests is a request to shut down the runtime system.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein one of the operation requests is a request to create, duplicate, or destroy data held by the runtime system.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein one of the operation requests is a request to allocate or de-allocate main system memory managed by the runtime system.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein one of the operation requests is a request to control error handling behavior of the runtime system.

### Claim 11

A parallel-processing computer system, comprising:
memory;
multiple processing elements, further including a first processing element and a second processing element, the two processing elements having different instruction set architectures;
a runtime system configured to run on a parallel-processing computer system; and
at least one program stored in the memory and executed by the multiple processing elements, the at least one program including:
instructions for receiving from an application executing in conjunction with the runtime system one or more application program interface calls to the runtime system, the application program interface calls corresponding to one or more operation requests to be performed by the parallel-processing computer system;
instructions for generating a programming language-independent, processor-independent intermediate representation for at least one of the operation requests using an application program interface module associated with the runtime system, wherein the intermediate representation includes a first set of instructions for generating optimized compute kernels for the first processing element and a second set of instructions for generating optimized compute kernels for the second processing element, respectively;
instructions for selecting one of the first processing element and the second processing element based on a current state of the runtime system;
instructions for generating one or more compute kernels from the intermediate representation in accordance with the instruction set architecture of the selected processing element and a corresponding set of instructions for generating optimized compute kernels for the selected processing element; and
instructions for executing the one or more compute kernels on the selected processing element.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the one or more programs further include:
instructions for identifying from a plurality of language-specific application program interface modules an application program interface module; and
instructions for generating the intermediate representation using the identified application program interface module.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein the intermediate representation includes at least one object that corresponds to a function call to the identified application program interface module in the application.

### Claim 14 (depends on 11)

The computer system of claim 11, wherein the intermediate representation includes at least one object that has an associated handle and the associated handle is embedded in at least one of the one or more operation requests.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein the application has an access to the at least one of the intermediate representation objects through its associated handle.

### Claim 16 (depends on 11)

The computer system of claim 11, wherein one of the operation requests is a request to initialize the runtime system.

### Claim 17 (depends on 11)

The computer system of claim 11, wherein one of the operation requests is a request to shut down the runtime system.

### Claim 18 (depends on 11)

The computer system of claim 11, wherein one of the operation requests is a request to create, duplicate, or destroy data held by the runtime system.

### Claim 19 (depends on 11)

The computer system of claim 11, wherein one of the operation requests is a request to allocate or de-allocate main system memory managed by the runtime system.

### Claim 20 (depends on 11)

The computer system of claim 11, wherein one of the operation requests is a request to control error handling behavior of the runtime system.

### Claim 21

A non-transitory computer readable storage medium storing one or more programs configured to be executed by a parallel-processing computer system that includes a first processing element and a second processing element, the two processing elements having different instruction set architectures, the one or more programs comprising instructions for:
receiving from an application executing in conjunction with the runtime system one or more application program interface calls to the runtime system, the application program interface calls corresponding to one or more operation requests to be performed by the parallel-processing computer system;
generating a programming language-independent, processor-independent intermediate representation for at least one of the operation requests using an application program interface module associated with the runtime system, wherein the intermediate representation includes a first set of instructions for generating optimized compute kernels for the first processing element and a second set of instructions for generating optimized compute kernels for the second processing element, respectively;
selecting one of the first processing element and the second processing element based on a current state of the runtime system;
generating one or more compute kernels from the intermediate representation in accordance with the instruction set architecture of the selected processing element and a corresponding set of instructions for generating optimized compute kernels for the selected processing element; and
executing the one or more compute kernels on the selected processing element.
