# US 11,119,820 B2 · Local memory sharing between kernels

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

- Number: US 11,119,820 B2
- Document ID: US11119820B2
- Status: Granted
- Kind: B2
- Application number: 16/354,957
- Filed: 2019-03-15
- Published: 2020-09-17
- Granted: 2021-09-14
- Earliest claimed: 2019-03-15
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Valentin Andrei; Aravindh Anantaraman; Abhishek R. Appu; Nicolas C. Galoppo von Borries; Altug Koker; SungYe Kim; Elmoustapha Ould-Ahmed-Vall; Mike Macpherson; Subramaniam Maiyuran; Vasanth Ranganathan; Joydeep Ray; Varghese George
- Web page: https://patentgrep.com/patent/US11119820B2

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5038: {considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration (scheduling strategies G06F9/4881 and subgroups)}
- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 13/1668: {Details of memory controller}
- G06F 13/4282: {on a serial bus, e.g. I2C bus, SPI bus (on daisy chain buses G06F13/4247)}
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 3/098: Distributed learning, e.g. federated learning
- G06F 2209/5018: Thread allocation
- G06F 2209/509: Offload
- G06F 2213/0026: PCI express
- G06F 2213/0042: Universal serial bus [USB]
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

One embodiment provides for a general-purpose graphics processing unit comprising a set of processing elements to execute one or more thread groups of a second kernel to be executed by the general-purpose graphics processor, an on-chip memory coupled to the set of processing elements, and a scheduler coupled with the set of processing elements, the scheduler to schedule the thread groups of the kernel to the set of processing elements, wherein the scheduler is to schedule a thread group of the second kernel to execute subsequent to a thread group of a first kernel, the thread group of the second kernel configured to access a region of the on-chip memory that contains data written by the thread group of the first kernel in response to a determination that the second kernel is dependent upon the first kernel.

## Claims

### Claim 1

A general-purpose graphics processor comprising:
a set of processing elements to execute one or more thread groups of a second kernel to be executed by the general-purpose graphics processor;
an on-chip memory coupled to the set of processing elements; and
a scheduler coupled with the set of processing elements, the scheduler to:
schedule the thread groups of the second kernel to the set of processing elements, wherein the scheduler is to schedule a second thread group of the second kernel to execute subsequent to a first thread group of a first kernel and, in response to a determination that the second kernel is dependent upon the first kernel and that the first thread group and the second thread group have a same number of threads, the second thread group is configured to access a region of the on-chip memory that contains data written by the first thread group, wherein the scheduler is to clear at least a portion of the on-chip memory before execution of a third thread group of a third kernel in response to a determination that the third thread group has a different number of threads than the first thread group and the second thread group.

### Claim 2 (depends on 1)

The general-purpose graphics processor as in claim 1, wherein the scheduler is to clear at least a portion of the on-chip memory before execution of the third thread group in response to a determination that the third kernel is not dependent upon the first kernel or the second kernel.

### Claim 3 (depends on 1)

The general-purpose graphics processor as in claim 1, wherein the scheduler is to bypass a clear of the region of the on-chip memory that contains data written by the first thread group in response to the determination that the second kernel is dependent upon the first kernel.

### Claim 4 (depends on 3)

The general-purpose graphics processor as in claim 3, wherein the first kernel is to compute output of a first layer of a neural network and write output data to the on-chip memory.

### Claim 5 (depends on 4)

The general-purpose graphics processor as in claim 4, wherein the second kernel is to read the output data from the on-chip memory and compute output of a second layer of a neural network, the first layer of the neural network connected to the second layer of the neural network.

### Claim 6 (depends on 1)

The general-purpose graphics processor as in claim 1, wherein the on-chip memory includes an implicitly managed cache memory and an explicitly managed shared memory.

### Claim 7

A circuit board comprising:
a host interconnect;
a general-purpose graphics processor coupled to the host interconnect, the general-purpose graphics processor including a set of processing elements to execute one or more thread groups of a second kernel to be executed by the general-purpose graphics processor, an on-chip memory coupled to the set of processing elements, and a scheduler coupled with the set of processing elements, the scheduler to schedule the thread groups of the second kernel to the set of processing elements, wherein the scheduler is to schedule a second thread group of the second kernel to execute subsequent to a first thread group of a first kernel and, in response to a determination that the second kernel is dependent upon the first kernel and that the first thread group and the second thread group have a same number of threads, the second thread group is configured to access a region of the on-chip memory that contains data written by the first thread group, wherein the scheduler is to clear at least a portion of the on-chip memory before execution of a third thread group of a third kernel in response to a determination that the third thread group has a different number of threads than the first thread group and the second thread group; and
a memory coupled to the host interconnect and the general-purpose graphics processor.

### Claim 8 (depends on 7)

The circuit board as in claim 7, wherein the scheduler is to clear at least a portion of the on-chip memory before execution of a third thread group of a third kernel in response to a determination that the third kernel is not dependent upon the first kernel or the second kernel.

### Claim 9 (depends on 8)

The circuit board as in claim 8, wherein the scheduler is to bypass a clear of the region of the on-chip memory that contains data written by the first thread group in response to the determination that the second kernel is dependent upon the first kernel.

### Claim 10 (depends on 9)

The circuit board as in claim 9, wherein the first kernel is to compute output of a first layer of a neural network and write output data to the on-chip memory, and wherein the second kernel is to read the output data from the on-chip memory and compute output of a second layer of a neural network, the first layer of the neural network connected to the second layer of the neural network.

### Claim 11 (depends on 7)

The circuit board as in claim 7, wherein the on-chip memory includes an implicitly managed cache memory and an explicitly managed shared memory.

### Claim 12

A method on a parallel processor, the method comprising:
scheduling thread groups of a second kernel to a set of processing elements via a scheduler of the parallel processor, wherein scheduling thread groups of the second kernel includes scheduling a second thread group of the second kernel to execute subsequent to a first thread group of a first kernel; and
in response to determining that the second kernel is dependent upon the first kernel and that the first thread group and the second thread group have a same number of threads, configuring the second thread group to access a region of the on-chip memory that contains data written by the first thread group; and
clearing at least a portion of the on-chip memory before executing a third thread group of a third kernel in response to a determination that the third thread group has a different number of threads than the first thread group and the second thread group.

### Claim 13 (depends on 12)

The method as in claim 12, further comprising clearing at least a portion of the on-chip memory before execution of the third thread group in response to a determination that the third kernel is not dependent upon the first kernel or the second kernel.

### Claim 14 (depends on 12)

The method as in claim 12, further comprising bypassing a clear of the region of the on-chip memory that contains data written by the first thread group in response to the determination that the second kernel is dependent upon the first kernel.

### Claim 15 (depends on 14)

The method as in claim 14, further comprising computing, via the first kernel, output of a first layer of a neural network and write output data to the on-chip memory.

### Claim 16 (depends on 15)

The method as in claim 15, further comprising reading, via the second kernel, the output data from the on-chip memory and computing output of a second layer of a neural network, the first layer of the neural network connected to the second layer of the neural network.

### Claim 17 (depends on 16)

The method as in claim 16, wherein the on-chip memory includes an implicitly managed cache memory and an explicitly managed shared memory.
