# US 2021/0334127 A1 · System and method to accelerate reduce operations in graphics processor

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

- Number: US 2021/0334127 A1
- Document ID: US20210334127A1
- Status: Published application
- Kind: A1
- Application number: 17/197,304
- Filed: 2021-03-10
- Published: 2021-10-28
- Earliest claimed: 2018-06-27
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Yong JIANG; Yuanyuan Li; Jianghong Du; Kuilin Chen; Thomas A. Tetzlaff
- Web page: https://patentgrep.com/patent/US20210334127A1

## CPC

- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 9/3009: {Thread control instructions}
- G06F 9/522: {Barrier synchronisation}
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06F 8/458: {Synchronisation, e.g. post-wait, barriers, locks (synchronisation among tasks G06F9/52)}
- G06F 9/30087: {Synchronisation or serialisation instructions}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Embodiments described herein provide a system, method, and apparatus to accelerate reduce operations in a graphics processor. One embodiment provides an apparatus including one or more processors, the one or more processors including a first logic unit to perform a merged write, barrier, and read operation in response to a barrier synchronization request from a set of threads in a work group, synchronize the set of threads, and report a result of an operation specified in association with the barrier synchronization request.

## Claims

### Claim at position 1

-25. (canceled)

### Claim 26

An apparatus comprising:
one or more processors to:
receive a barrier message associated with a barrier synchronization request, the barrier message including one or more source operands and an identifier of a specified operation; and
perform an operation including a merged write-barrier-read operation in response to the barrier synchronization request from a set of threads in a work group, synchronize the set of threads, wherein the merged write-barrier-read operation is performed to enable accelerated reduction operations associated with a set of map operations to write local data for global calculation, and the merged write-barrier-read operate is further performed to facilitate completion of atomic operations and ready the global calculations to determine one or more convergence conditions.

### Claim 27 (depends on 26)

The apparatus of claim 26, wherein the one or more processors are further to report results associated with performance of the operation, wherein the results satisfying the one or more convergence conditions facilitate termination of iterations, wherein the results failing the one or more convergence conditions facilitate continuation of the iterations.

### Claim 28 (depends on 26)

The apparatus of claim 26, wherein the one or more processors are further to report the result of the specified operation via a broadcast message to the set of threads after the set of threads are synchronized.

### Claim 29 (depends on 26)

The apparatus of claim 26, wherein the barrier synchronization request includes a predicate mask.

### Claim 30 (depends on 29)

The apparatus of claim 29, wherein the one or more processors are further to output a sum of predicate mask bits submitted by the set of threads.

### Claim 31 (depends on 26)

The apparatus of claim 26, wherein the one or more processors are further to perform the specified operation including one or more of a minimum operation, a maximum operation, and a variance operation.

### Claim 32 (depends on 26)

The apparatus of claim 26, wherein the one or more processors are further to receive a barrier message including a fence scope to specify a scope of a memory fence operation associated with a barrier synchronization request.

### Claim 33 (depends on 32)

The apparatus of claim 32, wherein the fence scope associated with the barrier synchronization request includes one or more of a global scope or a local scope wherein the fence scope indicates no memory fence is associated with the barrier synchronization request.

### Claim 34

A method comprising:
receiving a barrier message associated with a barrier synchronization request, the barrier message including one or more source operands and an identifier of a specified operation; and
performing an operation including a merged write-barrier-read operation in response to the barrier synchronization request from a set of threads in a work group, synchronize the set of threads, wherein the merged write-barrier-read operation is performed to enable accelerated reduction operations associated with a set of map operations to write local data for global calculation, and the merged write-barrier-read operate is further performed to facilitate completion of atomic operations and ready the global calculations to determine one or more convergence conditions.

### Claim 35 (depends on 34)

The method of claim 34, further comprising report results associated with performance of the operation, wherein the results satisfying the one or more convergence conditions facilitate termination of iterations, wherein the results failing the one or more convergence conditions facilitate continuation of the iterations.

### Claim 36 (depends on 35)

The method of claim 35, further comprising reporting the result of the specified operation via a broadcast message to the set of threads after the set of threads are synchronized, wherein the barrier synchronization request includes a predicate mask.

### Claim 37 (depends on 36)

The method of claim 36, further comprising outputting a sum of predicate mask bits submitted by the set of threads, and perform the specified operation including one or more of a minimum operation, a maximum operation, and a variance operation.

### Claim 38 (depends on 34)

The method of claim 34, further comprising receiving a barrier message including a fence scope to specify a scope of a memory fence operation associated with a barrier synchronization request.

### Claim 39 (depends on 38)

The method of claim 38, wherein the fence scope associated with the barrier synchronization request has a global scope, wherein the fence scope associated with the barrier synchronization request has a local scope, and wherein the fence scope indicates no memory fence is associated with the barrier synchronization request.

### Claim 40

At least one computer-readable medium having stored thereon instructions which, when executed, causes a computing device to perform operations comprising:
receiving a barrier message associated with a barrier synchronization request, the barrier message including one or more source operands and an identifier of a specified operation; and
performing an operation including a merged write-barrier-read operation in response to the barrier synchronization request from a set of threads in a work group, synchronize the set of threads, wherein the merged write-barrier-read operation is performed to enable accelerated reduction operations associated with a set of map operations to write local data for global calculation, and the merged write-barrier-read operate is further performed to facilitate completion of atomic operations and ready the global calculations to determine one or more convergence conditions; and
report results associated with performance of the operation, wherein the results satisfying the one or more convergence conditions facilitate termination of iterations, wherein the results failing the one or more convergence conditions facilitate continuation of the iterations.

### Claim 41 (depends on 40)

The computer-readable medium of claim 40, wherein the operations further comprise report results associated with performance of the operation, wherein the results satisfying the one or more convergence conditions facilitate termination of iterations, wherein the results failing the one or more convergence conditions facilitate continuation of the iterations.

### Claim 42 (depends on 41)

The computer-readable medium of claim 41, wherein the operations further comprise reporting the result of the specified operation via a broadcast message to the set of threads after the set of threads are synchronized, wherein the barrier synchronization request includes a predicate mask.

### Claim 43 (depends on 42)

The computer-readable medium of claim 42, wherein the operations further comprise outputting a sum of predicate mask bits submitted by the set of threads, and perform the specified operation including one or more of a minimum operation, a maximum operation, and a variance operation.

### Claim 44 (depends on 43)

The computer-readable medium of claim 43, wherein the operations further comprise receiving a barrier message including a fence scope to specify a scope of a memory fence operation associated with a barrier synchronization request.

### Claim 45 (depends on 44)

The computer-readable medium of claim 44, wherein the fence scope associated with the barrier synchronization request has a global scope, wherein the fence scope associated with the barrier synchronization request has a local scope, and wherein the fence scope indicates no memory fence is associated with the barrier synchronization request.
