# US 12,373,182 B2 · Compiler-based input synchronization for processor with variant stage latencies

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

- Number: US 12,373,182 B2
- Document ID: US12373182B2
- Status: Granted
- Kind: B2
- Application number: 18/089,157
- Filed: 2022-12-27
- Published: 2023-06-29
- Granted: 2025-07-29
- Earliest claimed: 2021-12-27
- Assignees: SambaNova Systems, Inc.
- Applicants: SambaNova Systems, Inc.
- Inventors: Weiwei Chen; Raghu Prabhakar; David Alan Koeplinger
- Web page: https://patentgrep.com/patent/US12373182B2

## CPC

- G06F 8/445: {Exploiting fine grain parallelism, i.e. parallelism at instruction level (run-time instruction scheduling G06F9/3836)}
- G06F 8/453: {Data distribution}
- G06F 5/08: having a sequence of storage locations, the intermediate ones not being accessible for either enqueue or dequeue operations, e.g. using a shift register {(G06F5/065 takes precedence; shift registers per se G11C19/00)}
- G06F 8/433: {Dependency analysis; Data or control flow analysis}
- G06F 8/441: {Register allocation; Assignment of physical memory space to logical memory space}
- G06F 8/458: {Synchronisation, e.g. post-wait, barriers, locks (synchronisation among tasks G06F9/52)}
- G06F 9/3869: {Implementation aspects, e.g. pipeline latches; pipeline synchronisation and clocking}
- G06F 15/825: {Dataflow computers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The technology disclosed provides a system that comprises a processor with computing units on an integrated circuit substrate. The processor is configured to map a program across multiple hardware stages with each hardware stage executing a corresponding operation of the program at a different stage latency dependent on an operation type and an operand format. The system further comprises a runtime logic that configures the compute units with configuration data. The configuration data causes first and second producer hardware stages in a given compute unit to execute first and second data processing operations and produce first and second outputs at first and second stage latencies, and synchronizes consumption of the first and second outputs by a consumer hardware stage in the given compute unit for execution of a third data processing operation by introducing a register storage delay that compensates for a difference between the first and second stage latencies.

## Claims

### Claim 1

A computer-implemented method of executing a dataflow graph on a processor including a plurality of compute units that each include a pipeline of a plurality of functional units and a plurality of storage units arranged in a plurality of stages, including:
allocating a particular stage of the plurality of stages of a particular compute unit of the plurality of compute units of the processor to a particular data processing operation of the dataflow graph;
determining that inputs of a same packet that are consumed by the particular stage of the particular compute unit are unsynchronized at least due to a first delay between a first earlier-arriving input of the same packet and a latest-arriving input of the same packet; and
prior to the particular stage beginning execution of the particular data processing operation, synchronizing the inputs of the same packet by using a first subset of storage units of the plurality of storage units of the particular compute unit to extend storage of the first earlier-arriving input of the same packet for as many clock cycles as the first delay.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the first subset of storage units includes storage units of plurality of storage units of the particular compute unit between the particular stage and another stage of the particular compute unit.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the another stage precedes the particular stage in the pipeline.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, wherein the first earlier-arriving input of the same packet is produced by the another stage.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the plurality of storage units are arranged in the pipeline across rows and columns.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, further including determining a first extended storage path through the plurality of storage units that selects the first subset of storage units.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the determining the first extended storage path selects the first subset of storage units across the columns.

### Claim 8 (depends on 6)

The computer-implemented method of claim 6, wherein the determining the first extended storage path selects the first subset of storage units across the rows.

### Claim 9 (depends on 6)

The computer-implemented method of claim 6, wherein the determining the first extended storage path selects the first subset of storage units from a same row.

### Claim 10 (depends on 6)

The computer-implemented method of claim 6, wherein the determining the first extended storage path selects the first subset of storage units from a same column.

### Claim 11 (depends on 6)

The computer-implemented method of claim 6, further including extending the storage of the first earlier-arriving input of the same packet by sequentially passing the first earlier-arriving input of the same packet between storage units in the first subset of storage units along the first extended storage path.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, wherein sequentially passing the first earlier-arriving input of the same packet across the first subset of storage units takes as many clock cycles as the first delay, and retimes arrival of the earlier-arriving input of the same packet at the particular stage to match arrival of the latest-arriving input of the same packet at the particular stage.

### Claim 13 (depends on 11)

The computer-implemented method of claim 11, wherein passing the first earlier-arriving input of the same packet between a pair of storage units takes one clock cycle.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, wherein passing the first earlier-arriving input of the same packet between a pair of storage units on a same row but adjacent columns takes one clock cycle.

### Claim 15 (depends on 13)

The computer-implemented method of claim 13, wherein passing the first earlier-arriving input of the same packet between a pair of storage units on a same column but adjacent rows takes one clock cycle.

### Claim 16 (depends on 13)

The computer-implemented method of claim 13, wherein passing the first earlier-arriving input of the same packet between a pair of storage units on adjacent columns but from a higher row to a lower row takes one clock cycle.

### Claim 17 (depends on 11)

The computer-implemented method of claim 11, wherein the sequential passing between a pair of storage units takes more than one clock cycle.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, wherein passing the first earlier-arriving input of the same packet between a pair of storage units on adjacent columns but from a lower row to a higher row takes more than one clock cycle.

### Claim 19

A reconfigurable processor, comprising:
an array of compute units on an integrated circuit substrate, each of the compute units comprising a pipeline of a plurality of arithmetic logic units and a plurality of registers arranged in a plurality of stages, and the registers chained together to propagate data between the stages of the plurality of stages; and
runtime logic configuring the array of compute units with configuration data that
causes first and second producer stages in a given compute unit to execute first and second data processing operations and produce first and second outputs at first and second stage latencies; and
synchronizes consumption of the first and second outputs by a consumer stage in the given compute unit for execution of a third data processing operation by introducing a register storage delay that compensates for a difference between the first and second stage latencies using at least one register of the given compute unit.

### Claim 20

A system, comprising:
a processor having computing units on an integrated circuit substrate, each computing unit of the computing units having multiple hardware stages, the processor configured to map a program across multiple hardware stages with each hardware stage executing a corresponding operation of the program at a different stage latency dependent on an operation type and an operand format;
runtime logic configuring the compute units with configuration data that
causes first and second producer hardware stages in a given compute unit to execute first and second data processing operations and produce first and second outputs at first and second stage latencies; and
synchronizes consumption of the first and second outputs by a consumer hardware stage in the given compute unit for execution of a third data processing operation by introducing a register storage delay that compensates for a difference between the first and second stage latencies using a hardware storage of the compute unit.
