# US 2022/0291955 A1 · Asynchronous input dependency resolution mechanism

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

- Number: US 2022/0291955 A1
- Document ID: US20220291955A1
- Status: Published application
- Kind: A1
- Application number: 17/688,028
- Filed: 2022-03-07
- Published: 2022-09-15
- Earliest claimed: 2021-03-09
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Michal Mrozek; Vinod Tipparaju
- Web page: https://patentgrep.com/patent/US20220291955A1

## CPC

- H04L 1/0061: {Error detection codes}
- G06F 9/30065: {Loop control instructions; iterative instructions, e.g. LOOP, REPEAT}
- G06F 9/30087: {Synchronisation or serialisation instructions}
- G06F 9/3009: {Thread control instructions}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- H04L 1/0084: {Formats for payload data}
- H04L 1/18: Automatic repetition systems, e.g. Van Duuren systems
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Described herein is a graphics processor configured to perform asynchronous input dependency resolution among a group of interdependent workloads. The graphics processor can dynamically resolve input dependencies among the workloads according to a dependency relationship defined for the workloads. Dependency resolution be performed via a deferred submission mode which resolves input dependencies prior to thread dispatch to the processing resources or via immediate submission mode which resolves input dependencies at the processing resources.

## Claims

### Claim 1

A graphics processor comprising:
a processing resource configured to execute a thread associated with a kernel program, the processing resource including first circuitry configured to perform dependency resolution operations associated with an immediate submission mode;
a thread dispatcher to perform a thread dispatch operation in response to a thread dispatch instruction, the thread dispatch instruction to cause dispatch of the thread associated with the kernel program to the processing resource, wherein the thread dispatcher includes second circuitry configured to perform dependency resolution operations associated with a deferred submission mode; and
third circuitry to configure the processing resource and the thread dispatcher to enable the immediate submission mode or the deferred submission mode.

### Claim 2 (depends on 1)

The graphics processor as in claim 1, wherein the thread dispatcher is configured to:
receive the thread dispatch instruction, wherein the thread dispatch instruction indicates a dependency;
in response to determination that the deferred submission mode is enabled:
determine, via the second circuitry, a resolution status for the dependency; and
in response to determination that the dependency is unresolved, enqueue the thread dispatch instruction into a hardware queue of the dispatcher.

### Claim 3 (depends on 2)

The graphics processor as in claim 2, wherein the thread dispatcher is configured to:
monitor the resolution status for the dependency via the second circuitry; and
dispatch the thread associated with the kernel program to the processing resource in response to determination that the dependency is resolved.

### Claim 4 (depends on 1)

The graphics processor as in claim 1, wherein the processing resource is configured to:
receive dispatch of the thread associated with the kernel program, the thread having an associated dependency;
determine, via the first circuitry, a resolution status for the dependency; and
execute instructions of the kernel program upon a determination that the dependency is resolved.

### Claim 5 (depends on 4)

The graphics processor as in claim 4, wherein to execute instructions of the kernel program upon a determination that the dependency is resolved, the processing resource is configured to:
configure a thread slot of the processing resource to execute the thread associated with the kernel program;
execute a loop operation via the thread slot, the loop operation to determine the resolution status for the dependency; and
in response to determination of the resolution of the dependency, exit the loop operation and execute executing instructions of the kernel program.

### Claim 6 (depends on 1, 6)

The graphics processor as in claim 1, wherein the thread dispatch instruction includes or is associated with dependency data to enable the dependency resolution operations associated with the immediate submission mode or the deferred submission mode. The graphics processor as in claim 6, wherein the dependency data includes a virtual address, a wait value, and a compare mode.

### Claim 8 (depends on 7)

The graphics processor as in claim 7, wherein to perform the dependency resolution operations associated with the deferred submission mode or the dependency resolution operations associated with immediate submission mode, the first circuitry or the second circuitry is configured to:
read a data value from the virtual address specified by the dependency data; and
compare the data value read from the virtual address with the wait value according to the compare mode.

### Claim 9 (depends on 8)

The graphics processor as in claim 8, wherein the dependency data additionally includes a wait mode and, based on the wait mode, first circuitry or the second circuitry is configured to request a hardware context switch in response to determination that the dependency is unresolved.

### Claim 10 (depends on 1)

The graphics processor as in claim 1, wherein the third circuitry is configured to enable runtime selection between the immediate submission mode and the deferred submission mode.

### Claim 11

A method comprising:
on a graphics processor including a processing resource and a thread dispatcher:
receiving a thread dispatch instruction at the thread dispatcher that indicates a dependency, wherein the thread dispatch instruction is to cause dispatch of a thread associated with a kernel program to the processing resource;
determining a configured thread submission mode to use when dependencies are indicated by the thread dispatch instruction, wherein the configured thread submission mode is an immediate submission mode or a deferred submission mode;
in response to determining that the immediate submission mode is enabled, dispatching the thread associated with the kernel program to the processing resource and synchronizing execution of the kernel program at the processing resource with resolution of the dependency; and
in response to determining that the deferred submission mode is enabled, synchronizing the dispatch of the thread associated with the kernel program with the resolution of the dependency.

### Claim 12 (depends on 11)

The method as in claim 11, wherein synchronizing execution of the kernel program at the processing resource with resolution of the dependency includes:
executing an instruction loop by the processing resource via a hardware thread associated with the kernel program, the instruction loop to check a status for the dependency;
exiting the instruction loop in response to determining the resolution of the dependency; and
executing instructions of the kernel program after exiting the instruction loop.

### Claim 13 (depends on 11)

The method as in claim 11, wherein synchronizing the dispatch of the thread associated with the kernel program with the resolution of the dependency includes:
enqueuing the thread dispatch instruction into a hardware queue of the thread dispatcher;
monitoring, via the thread dispatcher, status for the dependency via hardware logic of the thread dispatcher; and
dispatching the thread associated with the kernel program to the processing resource in response to determining the resolution of the dependency.

### Claim 14 (depends on 11)

The method as in claim 11, wherein determining a configured thread submission mode to use when dependencies are indicated by the thread dispatch instruction includes reading a configuration register of the graphics processor, an opcode of the thread dispatch instruction, or a state configuration for a hardware context associated with the thread dispatch instruction.

### Claim 15

A system comprising:
a memory device;
a graphics processor coupled with the memory device, the graphics processor comprising:
a processing resource configured to execute a thread associated with a kernel program, the processing resource including first circuitry configured to perform dependency resolution operations associated with an immediate submission mode;
a thread dispatcher to perform a thread dispatch operation in response to a thread dispatch instruction, the thread dispatch instruction to cause dispatch of the thread associated with the kernel program to the processing resource, wherein the thread dispatcher includes second circuitry configured to perform dependency resolution operations associated with a deferred submission mode; and
third circuitry to configure the processing resource and the thread dispatcher to enable the immediate submission mode or the deferred submission mode, wherein the third circuitry is configured to enable runtime selection between the immediate submission mode and the deferred submission mode.

### Claim 16 (depends on 15)

The system as in claim 15, wherein the first circuitry is configured to receive the thread dispatch instruction, wherein the thread dispatch instruction indicates a dependency, and in response to determination that the deferred submission mode is enabled, the first circuitry is to:
determine a resolution status for the dependency;
in response to determination that the dependency is unresolved, enqueue the thread dispatch instruction into a hardware queue of the dispatcher;
monitor the resolution status for the dependency; and
dispatch the thread associated with the kernel program to the processing resource in response to determination that the dependency is resolved.

### Claim 17 (depends on 15)

The system as in claim 15, wherein the first circuitry is configured to:
receive dispatch of the thread associated with the kernel program, the thread having an associated dependency;
determine a resolution status for the dependency; and
execute instructions of the kernel program upon a determination that the dependency is resolved, wherein to execute instructions of the kernel program upon a determination that the dependency is resolved, the first circuitry is configured to configure a thread slot of the processing resource to execute the thread associated with the kernel program, execute a loop operation via the thread slot, the loop operation to determine the resolution status for the dependency, and in response to determination of the resolution of the dependency, exit the loop operation and execute executing instructions of the kernel program.

### Claim 18 (depends on 15)

The system as in claim 15, wherein the thread dispatch instruction includes or is associated with dependency data to enable the dependency resolution operations associated with the immediate submission mode or the deferred submission mode and the dependency data includes a virtual address, a wait value, and a compare mode.

### Claim 19 (depends on 18)

The system as in claim 18, wherein to perform the dependency resolution operations associated with the deferred submission mode or the dependency resolution operations associated with immediate submission mode, the first circuitry or the second circuitry is configured to:
read a data value from the virtual address specified by the dependency data; and
compare the data value read from the virtual address with the wait value according to the compare mode.

### Claim 20 (depends on 19)

The system as in claim 19, wherein the dependency data additionally includes a wait mode and, based on the wait mode, first circuitry or the second circuitry is configured to request a hardware context switch in response to determination that the dependency is unresolved.
