# US 2025/0156190 A1 · Group Thread Dispatch for Graph Streaming Processor

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

- Number: US 2025/0156190 A1
- Document ID: US20250156190A1
- Status: Published application
- Kind: A1
- Application number: 19/024,411
- Filed: 2025-01-16
- Published: 2025-05-15
- Earliest claimed: 2023-06-12
- Assignees: Blaize, Inc.
- Applicants: Blaize Inc.
- Inventors: Kota Vamsi Krishna Darsi; Sarvendra Govindammagari; Venkata Divya Bharathi Palaparthy; Venkata Ganapathi Puppala; Satyaki Koneru
- Web page: https://patentgrep.com/patent/US20250156190A1

## CPC

- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/3834: {Maintaining memory consistency}
- G06F 9/3854: {Instruction completion, e.g. retiring, committing or graduating}
- G06F 9/3887: {controlled by a single instruction for multiple data lanes [SIMD]}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30098: {Register arrangements}
- G06F 9/3888: {controlled by a single instruction for multiple threads [SIMT] in parallel}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and apparatuses for graph streaming processing are disclosed. One method includes receiving, by a thread scheduler, a group of threads, calculating a resource requirement for execution of the group of threads, calculating resource availability in a plurality of processors of each of a plurality of processor arrays, dispatching the group of threads to a selected one of plurality of processors of processor arrays, scheduling a group load instruction for all threads of the group of threads, including loading into a group load register a subset of inputs of the input tensor for processing of each thread of the group of threads, wherein the group load register provides the subset of the inputs of the input tensor to the group of threads of the selected one of the plurality of processors, wherein all threads of the group of threads are synchronized when executing the group load instruction.

## Claims

### Claim 1

A method of group thread dispatch for a graph streaming processor, comprising
receiving, by a thread scheduler of the graph streaming processor, a group of threads, wherein the group of threads comprises a plurality of threads which operate on an input tensor, wherein each of the plurality of threads operates on inputs of the input tensor and a subset of a weight tensor to generate a subset of an output tensor;
calculating by the thread scheduler, a resource requirement for execution of the group of threads;
calculating, by the thread scheduler, resource availability in a plurality of processors of each of a plurality of processor arrays; and
dispatching the group of threads to a selected one of the plurality of processors of the plurality of processor arrays that has a resource availability that meets or exceeds the resource requirement for execution of the group of threads.

### Claim 2 (depends on 1)

The method of claim 1, further comprising scheduling a group load instruction for all threads of the group of threads, comprising:
loading into a group load register a subset of inputs of the input tensor for processing of each thread of the group of threads, wherein the group load register provides the subset of the inputs of the input tensor to the group of threads of the selected one of the plurality of processors.

### Claim 3 (depends on 2)

The method of claim 2, wherein all threads of the group of threads are synchronized when executing the group load instruction.

### Claim 4 (depends on 3)

The method of claim 3, wherein all threads of the group of threads are processed independently on the selected one of the plurality of processors when not executing the group load instruction.

### Claim 5 (depends on 4)

The method of claim 4, wherein the processing of each thread of the group of threads comprises generating a subset of outputs of the output tensor for each thread of the plurality of threads based on a subset of weights of the weight tensor and the inputs of the input tensor.

### Claim 6 (depends on 1)

The method of claim 1, wherein each thread of the group of threads is scheduled on one processor of the selected one of the plurality of processors.

### Claim 7 (depends on 1)

The method of claim 1, wherein calculating resource requirement for execution of the group of threads comprises determining the number of threads in the group of threads and determining the number of registers required by each thread of the group of threads.

### Claim 8 (depends on 1)

The method of claim 1, wherein calculating resource availability in the plurality of processors comprises determining the available thread slots and determining the number of available registers in each processor of the plurality of processors of each of the plurality of processor arrays.

### Claim 9 (depends on 8)

The method of claim 8, wherein determining the available thread slots and determining the number of available registers in each processor of the plurality of processors of each of the plurality of processor arrays comprises:
decrementing, by a counter of the thread scheduler corresponding with the processor, the number of available registers when starting a thread; and
incrementing, by the counter of the thread scheduler corresponding with the processor, the number of available when a thread is completed.

### Claim 10 (depends on 4)

The method of claim 4, wherein independently processing all threads of the group of threads comprises scheduling an instruction of one thread of the group of threads without relying on scheduling of an instruction of another thread of the group of threads.

### Claim 11 (depends on 1)

The method of claim 1, wherein each thread includes an instance of a set of instructions running on a processor of the graph streaming processor.

### Claim 12 (depends on 1)

The method of claim 1, wherein dispatching the group of threads to the plurality of processors of a one of the plurality of processor arrays comprising loading attributes of each thread of the group of threads to each of the available thread slots of a processor, wherein the attributes include a program pointer, pointer to the input tensor, pointer to the weight tensor, and pointer to the output tensor.

### Claim 13 (depends on 5)

The method of claim 5, further comprising:
loading, by a plurality of weight data registers, the subset of weights of the weight tensor, wherein each of the weight data registers provide a weight to a single of the plurality of processors;
performing, by the plurality of processors, a SOMAC (Sum-Of-Multiply-Accumulate) instruction, including:
simultaneously determining, by each of the plurality of processors, an instruction size of the SOMAC instruction, wherein the instruction size indicates a number of iterations that the SOMAC instruction is to be executed and is equal to a number of outputs within a subset of the output tensor.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
reading, by each of the plurality of processors, a first source operand of a plurality of source operands of the SOMAC instruction from the group load register file, wherein the first source operand is one of the subset of inputs of the input tensor.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
reading, by each of the plurality of processors, a second source operand of the plurality of source operands of the SOMAC instruction from the weight register file wherein the second source operand is one of the subset of the weights of the weight tensor.

### Claim 16 (depends on 14)

The method of claim 14, further comprising:
executing, by each of the plurality of processors, multiply and accumulate operations of the SOMAC operation for the number of iterations.

### Claim 17

A graph streaming processor, comprising:
plurality of processor arrays, each of the plurality of processor arrays comprising a plurality of processors; and
a thread scheduler configured to:
receive a group of threads of the graph streaming processor, wherein the group of threads comprises a plurality of threads which operate on an input tensor, wherein each of the plurality of threads operates on the inputs of the input tensor and a subset of a weight tensor to generate a subset of an output tensor;
calculate a resource requirement for execution of the group of threads;
calculate resource availability in a plurality of processors of each of a plurality of processor arrays; and
dispatch the group of threads to a selected one of the plurality of processors of the plurality of processor arrays that has a resource availability that meets or exceeds the resource requirement for execution of the group of threads.

### Claim 18

The graph streaming processor, wherein the thread scheduler is further configured to:
schedule a group load instruction for all threads of the group of threads, comprising:
loading into a group load register a subset of inputs of the input tensor for processing of each thread of the group of threads, wherein the group load register provides the subset of the inputs of the input tensor to the group of threads of the selected one of the plurality of processors;
wherein all threads of the group of threads are synchronized when executing the group load instruction;
wherein all threads of the group of threads are processed independently on the selected one of the plurality of processors when not executing the group load instruction;
wherein the processing of each thread of the group of threads comprises generating a subset of outputs of the output tensor for each thread of the plurality of threads based on the subset of weights of the weight tensor and the inputs of the input tensor.

### Claim 19 (depends on 18)

The graph streaming processor of claim 18, wherein calculating resource requirement for execution of the group of threads comprises determining the number of threads in the group of threads and determining the number of registers required by each thread of the group of threads.

### Claim 20 (depends on 18)

The graph streaming processor of claim 18, wherein calculating resource availability in a plurality of processors of each of a plurality of processor arrays comprises determining the available thread slots and determining the number of available registers in each processor of the plurality of processors of each of the plurality of processor arrays.
