# US 12,282,756 B2 · Method and system of command buffer between a CPU and GPU

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

- Number: US 12,282,756 B2
- Document ID: US12282756B2
- Status: Granted
- Kind: B2
- Application number: 18/432,161
- Filed: 2024-02-05
- Published: 2024-05-30
- Granted: 2025-04-22
- Earliest claimed: 2014-02-06
- Assignees: Oxide Interactive, LLC
- Applicants: Oxide Interactive, Inc.
- Inventors: Daniel K. Baker
- Web page: https://patentgrep.com/patent/US12282756B2

## CPC

- G06F 8/41: Compilation
- G06F 8/443: {Optimisation}
- G06F 8/447: {Target code generation}
- G06F 8/51: Source to source
- G06F 9/45516: {Runtime code conversion or optimisation}
- G06F 9/5016: {the resource being the memory}
- G06F 9/5044: {considering hardware capabilities}
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06T 1/00: General purpose image data processing
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 1/60: Memory management
- G06T 15/005: {General purpose rendering architectures}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method and system for a command processor for efficient processing of a program multi-processor core system with a CPU and GPU. The multi-core system includes a general purpose CPU executing commands in a CPU programming language and a graphic processing unit (GPU) executing commands in a GPU programming language. A command processor is coupled to the CPU and CPU. The command processor sequences jobs from a program for processing by the CPU or the GPU. The command processor creates commands from the jobs in a state free command format. The command processor generates a sequence of commands for execution by either the CPU or the GPU in the command format. A compiler running a meta language converts program data for the commands into a first format readable by the CPU programming language and a second format readable by the GPU programming language.

## Claims

### Claim 1

A system for executing a program by a first processing unit device configured to execute a first set of one or more commands in a first programming language and a second processing unit device configured to execute a second set of one or more commands in a second programming language that is distinct from the first programming language, the system comprising:
a command processor accessible to the first processing unit device and the second processing unit device and configured to manage one or more jobs from the program and translate commands associated with the one or more jobs into a format associated with the first programming language or the second programming language; and
a transfer memory communicatively coupled to the command processor and accessible to either the first processing unit device or the second processing unit device, the transfer memory comprising (i) a frame graphics transfer memory, (ii) a frame command transfer memory, (iii) an owner graphics transfer memory, and (iv) an owner command memory, the transfer memory being configured to store the commands associated with the one or more jobs,
wherein the stored commands include the first set of one or more commands or the second set of one or more commands,
wherein the first set of one or more commands, the second set of one or more commands, or both, include commands in a state-free command format, and
wherein the state-free command format maps each of at least some of the commands in the first set of one or more commands and the second set of one or more commands to a plurality of different hardware platforms.

### Claim 2 (depends on 1)

The system of claim 1, wherein the command processor is configured to generate (i) the first set of one or more commands for execution by the first processing unit device, (ii) the second set of one or more commands for execution by the second processing unit device, or (iii) both (i) and (ii).

### Claim 3 (depends on 1)

The system of claim 1, wherein the first processing unit device executes the first set of one or more commands in parallel with the second processing unit device executing the second set of one or more commands.

### Claim 4 (depends on 1)

The system of claim 1, wherein the first set of one or more commands, the second set of one or more commands, or both, include one or more commands for specific graphic processing functions or for general processing unit operations.

### Claim 5 (depends on 1)

The system of claim 1, wherein each of the commands in the first set of one or more commands and the second set of one or more commands includes all state information required to execute each of the commands independently of others of the commands.

### Claim 6 (depends on 1)

The system of claim 1, further comprising a data compiler configured to run a meta language to convert program data for the stored commands into a first data format and a second data format.

### Claim 7 (depends on 6)

The system of claim 6, wherein the meta language includes resource sets and constant sets.

### Claim 8 (depends on 1)

The system of claim 1, wherein the first processing unit device is a central processing unit (CPU) device and the second processing unit device is a graphics processing unit (GPU) device.

### Claim 9 (depends on 1)

The system of claim 1, wherein:
(i) the frame graphics transfer memory is configured to allow transfer of data from the second processing unit device to the first processing unit device;
(ii) the frame command transfer memory is configured to be visible to the first processing unit device to translate the stored commands;
(iii) the owner graphics transfer memory is configured to allow transfer of data from the first processing unit device to the second processing unit device; or
(iv) the owner command memory is configured to store command instructions.

### Claim 10

A method for executing a program by a first processing unit device configured to execute a first set of one or more commands in a first programming language and a second processing unit device configured to execute a second set of one or more commands in a second programming language that is distinct from the first programming language, the method comprising:
obtaining one or more jobs from the program;
generating a command related to each of the one or more jobs in a command format;
translating said command into a format executable by the first processing unit device or the second processing unit device;
compiling data for said command into a first data format associated with the first programming language or a second data format associated with the second programming language;
storing said command in a memory; and
assigning said command for execution by the first processing unit device or the second processing unit device,
wherein the memory includes a transfer memory accessible by the first processing unit device or the second processing unit device, the transfer memory comprising (i) a frame graphics transfer memory, (ii) a frame command transfer memory, (iii) an owner graphics transfer memory, and (iv) an owner command memory.

### Claim 11 (depends on 10)

The method of claim 10, further comprising generating, via a command processor, (i) the first set of one or more commands for execution by the first processing unit device, (ii) the second set of one or more commands for execution by the second processing unit device, or (iii) both (i) and (ii).

### Claim 12 (depends on 11)

The method of claim 11, wherein the command processor is configured to be accessible by both the first processing unit device and the second processing unit device.

### Claim 13 (depends on 12)

The method of claim 12, wherein the command processor is configured to manage jobs for the program for processing by the first processing unit device or the second processing unit device.

### Claim 14 (depends on 10)

The method of claim 10, wherein the first processing unit device executes the first set of one or more commands in parallel with the second processing unit device executing the second set of one or more commands.

### Claim 15 (depends on 10)

The method of claim 10, wherein the first set of one or more commands, the second set of one or more commands, or both, include one or more commands for specific graphic processing functions or for general processing unit operations.

### Claim 16 (depends on 10)

The method of claim 10, wherein said command includes all state information required to execute independently of other commands.

### Claim 17 (depends on 10)

The method of claim 10, wherein:
(i) the frame graphics transfer memory is configured to allow transfer of data from the second processing unit device to the first processing unit device;
(ii) the frame command transfer memory is configured to be visible to the first processing unit device to translate the stored commands;
(iii) the owner graphics transfer memory is configured to allow transfer of data from the first processing unit device to the second processing unit device; or
(iv) the owner command memory is configured to store command instructions.

### Claim 18

A non-transitory machine-readable storage media having stored thereon instructions for executing a program by a first processing unit device configured to execute a first set of one or more commands in a first programming language and a second processing unit device configured to execute a second set of one or more commands in a second programming language that is distinct from the first programming language, the stored instructions comprising machine executable code, which when executed by at least one machine processor, causes the machine processor to:
obtain one or more jobs from the program;
generate a command related to each of the one or more jobs in a command format;
translate said command into a format executable by the first processing unit device or the second processing unit device;
compile data for said command into a first data format associated with the first programming language or a second data format associated with the second programming language;
store said command in a memory; and
assign said command for execution by the first processing unit device or the second processing unit device,
wherein the memory includes a transfer memory accessible by the first processing unit device or the second processing unit device, the transfer memory comprising (i) a frame graphics transfer memory, (ii) a frame command transfer memory, (iii) an owner graphics transfer memory, and (iv) an owner command memory.

### Claim 19 (depends on 18)

The non-transitory machine-readable storage media of claim 18, further comprising instructions for a command processor configured to generate (i) the first set of one or more commands for execution by the first processing unit device, (ii) the second set of one or more commands for execution by the second processing unit device, or (iii) both (i) and (ii).

### Claim 20 (depends on 18)

The non-transitory machine-readable storage media of claim 18, wherein:
(i) the frame graphics transfer memory is configured to allow transfer of data from the second processing unit device to the first processing unit device;
(ii) the frame command transfer memory is configured to be visible to the first processing unit device to translate the stored commands;
(iii) the owner graphics transfer memory is configured to allow transfer of data from the first processing unit device to the second processing unit device; or
(iv) the owner command memory is configured to store command instructions.
