# US 2017/0109210 A1 · Program Execution On Heterogeneous Platform

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

- Number: US 2017/0109210 A1
- Document ID: US20170109210A1
- Status: Published application
- Kind: A1
- Application number: 15/300,541
- Filed: 2015-03-30
- Published: 2017-04-20
- Earliest claimed: 2014-03-30
- Assignees: Universiteit Gent; Iminds VZW
- Applicants: Universiteit Gent; Iminds Vzw
- Inventors: Bart GOOSSENS
- Web page: https://patentgrep.com/patent/US20170109210A1

## CPC

- G06F 9/5044: {considering hardware capabilities}
- G06F 8/44: {Encoding}
- G06F 9/45516: {Runtime code conversion or optimisation}
- G06F 9/505: {considering the load}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method comprises obtaining an intermediate computer code object including a set of instructions corresponding to a task to be performed. The intermediate computer code object—being machine independent—further includes for each of the at least one set of instructions one or more metadata descriptors representative of at least a complexity measure of the task to be performed. The method also comprises executing the intermediate computer code object on a computing platform comprising at least two different execution units having a different memory with a different memory location. This executing comprises selecting for each of the at least one set of instructions a target execution unit from the plurality of execution units. This selecting takes the one or more metadata descriptors and a decision rule into account, wherein the decision rule relates the plurality of complexity measures to a performance characteristic of the plurality of execution units.

## Claims

### Claim at position 1

1-17. (canceled)

### Claim 18

A computer-implemented method comprising:
obtaining an intermediate computer code object comprising at least one set of instructions corresponding to a task to be performed, the intermediate computer code object further comprising for each of said at least one set of instructions one or more of metadata descriptors representative of at least a complexity measure of said task to be performed, said intermediate computer code object being machine-independent and
executing at run-time said intermediate computer code object on a computing platform comprising at least two different execution units having a memory with a different memory location, said executing at run-time comprising selecting for each of said at least one set of instructions a target execution unit from said plurality of execution units, said selecting taking into account the one or more of metadata descriptors and a decision rule relating said plurality of complexity measures to a performance characteristic of the plurality of execution units.

### Claim 19 (depends on 18)

The computer-implemented method according to claim 18, wherein the at least two different execution units are a central processing unit CPU and a graphical processing unit GPU.

### Claim 20 (depends on 18)

The computer-implemented method according to claim 18, wherein the at least two different execution units are graphical processing units GPU's having a memory with a different memory location.

### Claim 21 (depends on 18)

The computer-implemented method according to claim 18, wherein the corresponding plurality of complexity measures is obtained by at least analyzing the intermediate code.

### Claim 22 (depends on 18)

The computer-implemented method according to claim 18, wherein said one or more metadata descriptors are representative of a corresponding plurality of complexity measures of said task to be performed.

### Claim 23 (depends on 18)

The computer-implemented method according to claim 18, wherein said intermediate computer code object is obtained in an execution unit independent intermediate format.

### Claim 24 (depends on 18)

The computer-implemented method according to claim 18, in which executing the intermediate computer code object comprises determining whether a first set of said at least one set of instructions and a second set of said at least one set of instructions can be executed concurrently.

### Claim 25 (depends on 18)

The computer-implemented method according to claim 18, in which executing the intermediate computer code object comprises providing automated memory allocation to provide data for being processed by the execution of each of said at least one set of instructions to the corresponding target execution unit.

### Claim 26 (depends on 18)

The computer-implemented method according to claim 18, in which executing the intermediate computer code object comprises translating each of the at least one set of instructions to a machine level format executable by the corresponding target execution unit.

### Claim 27 (depends on 18)

The computer-implemented method according to claim 18, in which obtaining the intermediate computer code object comprises compiling the intermediate computer code object from a computer program code specified in accordance to a high-level programming language specification and/or in which obtaining the intermediate computer code object further comprises for each of said at least one set of instructions determining the one or more of metadata descriptors representative of the corresponding plurality of complexity measures.

### Claim 28 (depends on 18)

The computer-implemented method according to claim 18, wherein the one or more metadata descriptors are one or more parameters determinable at compiler level and expressing a complexity of a kernel function of the intermediate computer code object.

### Claim 29 (depends on 18)

The computer-implemented method according to claim 18, wherein said selecting also takes into account one or more of a code length, a product of data dimensions, a product of GPU block dimensions, a total number of GPU blocks, a number of assigned CPU threads, a memory transfer time, a GPU occupancy, a size or load of CPU and GPU command queues or an overall load of CPU and GPU queues.

### Claim 30

A first computer program product for executing an intermediate computer code object, the first computer program product comprising:
an input component configured for obtaining an intermediate computer code object comprising at least one set of instructions corresponding to a task to be performed, the intermediate computer code object further comprising for each of said at least one set of instructions one or more of metadata descriptors representative of a corresponding plurality of complexity measures of said task to be performed, and
a run-time component configured for executing said intermediate computer code object on a computing platform comprising at least two different execution units having a memory with a different memory location,
wherein the run-time component comprises a selection unit for selecting for each of said at least one set of instructions a target execution unit from said at least two execution units, said selecting taking into account the one or more of metadata descriptors and a decision rule relating said plurality of complexity measures to a performance characteristic of the at least two different execution units.

### Claim 31 (depends on 30)

The first computer program product according to claim 30, wherein the run-time component furthermore comprises a memory manager unit programmed for automated memory allocation and/or a run-time scheduler unit programmed for determining whether a first set of said at least one set of instructions and a second set of said at least one set of instructions can be executed concurrently.

### Claim 32

A second computer program product for generating an intermediate computer code object, the second computer program product comprising:
an input component configured for obtaining a computer program code specified in accordance to a high-level programming language specification,
a compiler component configured for compiling the computer program code into an intermediate computer code object comprising at least one set of instructions corresponding to a task to be performed, and
an analysis component configured for annotating each of said at least one set of instructions with one or more of metadata descriptors representative of a corresponding plurality of complexity measures of said task to be performed.

### Claim 33 (depends on 32)

The second computer program product according to claim 32, in which the analysis component is adapted for determining the one or more metadata descriptors representative of at least a measure related to conditional branches, backward jumps, dynamic memory allocation, indirect function calls and/or thread synchronization.

### Claim 34 (depends on 18)

A data carrier comprising a set of instructions for, when executed on a computer, executing intermediate computer code object on a computing platform comprising at least two different execution units having a memory with different memory location according to a method according to claim 18.
