# US 2020/0394041 A1 · Register sharing mechanism

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

- Number: US 2020/0394041 A1
- Document ID: US20200394041A1
- Status: Published application
- Kind: A1
- Application number: 16/443,285
- Filed: 2019-06-17
- Published: 2020-12-17
- Earliest claimed: 2019-06-17
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Guei-Yuan Lueh; Subramaniam Maiyuran; Weiyu Chen; Konrad Trifunovic; Supratim Pal; Chandra S. Gurram; Jorge E. Parra; Pratik J. Ashar; Tomasz Bujewski
- Web page: https://patentgrep.com/patent/US20200394041A1

## CPC

- G06F 9/30098: {Register arrangements}
- G06F 9/30123: {according to context, e.g. thread buffers}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3888: {controlled by a single instruction for multiple threads [SIMT] in parallel}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5011: {the resources being hardware resources other than CPUs, Servers and Terminals}
- G06F 9/5016: {the resource being the memory}
- G06F 9/5022: {Mechanisms to release resources}
- G06F 9/5061: {Partitioning or combining of resources}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 2209/5011: Pool
- G06F 2212/65: Details of virtual memory and virtual address translation
- 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)
- 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

An processor to facilitate register sharing is disclosed. The processor includes a plurality of execution units (EUs), each including a General Purpose Register File (GRF) having a plurality of registers; and register sharing hardware to divide the plurality of registers into a first set of registers dedicated for execution of a first set of threads and a second set of registers shared for execution of a second set of threads.

## Claims

### Claim 1

A processor to facilitate register sharing, comprising:
a plurality of execution units (EUs), each including:
a General Purpose Register File (GRF) having a plurality of registers; and
register sharing hardware to divide the plurality of registers into a first set of registers that are dedicated for execution of a first set of threads and a second set of registers that are shared for execution of a second set of threads.

### Claim 2 (depends on 1)

The processor of claim 1, wherein one or more registers are acquired from the second set of registers for execution of the second set of threads.

### Claim 3 (depends on 2)

The processor of claim 2, wherein the second set of threads comprise a plurality of critical threads that are guaranteed acquisition of the one or more registers, and a plurality of common threads that are not guaranteed acquisition of the one or more registers.

### Claim 4 (depends on 3)

The processor of claim 3, wherein the one or more acquired registers are released to the second set of registers upon receiving an instruction at completion of the execution of the common thread.

### Claim 5 (depends on 4)

The processor of claim 4, further comprising a mapping table comprising a plurality of virtual address to physical address mappings.

### Claim 6 (depends on 5)

The processor of claim 5, wherein the one or more registers are acquired upon a determination that a mapping entry does not exist virtual to physical register address.

### Claim 7 (depends on 1)

The processor of claim 1, wherein the register sharing hardware performs a chunking process to combine registers within the second set of registers.

### Claim 8

A method to facilitate register sharing, comprising:
decoding an instruction including one or more source operands;
determining whether the one or more source operands are stored in a shared set of registers in a General Purpose Register File (GRF);
returning addresses of the one or more registers in a dedicated set of registers in the GRF upon a determination that the one or more source operands are stored in the dedicated set of registers; and
requesting acquisition of a group of one or more registers in the shared set of registers upon a determination that the one or more source operands are stored in the shared set of registers.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
determining whether a magnitude of shared set of registers previously acquired by a thread exceeds a threshold in response to the request; and
determining whether the thread is a critical thread upon a determination that the magnitude of shared set of registers previously acquired by a thread exceeds the threshold.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
allowing acquisition of the group of one or more registers upon a determination that the thread is a critical thread; and
storing the group of one or more registers in a mapping table.

### Claim 11 (depends on 9)

The method of claim 9, further comprising:
determining whether there are registers available for acquisition in the shared set of registers upon a determination that the thread is not a critical thread; and
returning addresses of the group of one or more registers upon a determination that there are registers available for acquisition.

### Claim 12 (depends on 11)

The method of claim 11, further comprising stalling the thread upon a determination that there are registers available for acquisition.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
determining whether there is a virtual address to physical address translation hit in a mapping table upon a determination that the one or more source operands are stored in the shared set of registers;
translating virtual addresses of the group of one or more registers to one or more physical addresses upon a determination that there is a hit in the mapping table; and
returning addresses of the group of one or more registers.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
receiving an instruction to release the group of one or more registers; and
releasing the group of one or more registers to the shared set of registers.

### Claim 15

At least one non-transitory computer readable medium having instructions stored thereon, which when executed by one or more processors, cause the processors to:
decode an instruction including one or more source operands;
determine whether the one or more source operands are stored in a shared set of registers in a General Purpose Register File (GRF);
return addresses of the one or more registers in a dedicated set of registers in the GRF upon a determination that the one or more source operands are stored in a dedicated set of registers; and
request acquisition of a group of one or more registers in the shared set of registers upon a determination that the one or more source operands are stored in the shared set of registers.

### Claim 16 (depends on 15)

The computer readable medium of claim 15, having instructions stored thereon, which when executed by one or more processors, further cause the processors to:
determine whether a magnitude of shared set of registers previously acquired by a thread exceeds a threshold in response to the request; and
determine whether the thread is a critical thread upon a determination that the magnitude of shared set of registers previously acquired by a thread exceeds the threshold.

### Claim 17 (depends on 16)

The computer readable medium of claim 16, having instructions stored thereon, which when executed by one or more processors, further cause the processors to:
allow acquisition of the group of one or more registers upon a determination that the thread is a critical thread; and
store the group of one or more registers in a mapping table.

### Claim 18 (depends on 17)

The computer readable medium of claim 17, having instructions stored thereon, which when executed by one or more processors, further cause the processors to:
determine whether there are registers available for acquisition in the shared set of registers upon a determination that the thread is not a critical thread; and
return addresses of the group of one or more registers upon a determination that there are registers available for acquisition.

### Claim 19 (depends on 18)

The computer readable medium of claim 18, having instructions stored thereon, which when executed by one or more processors, further cause the processors to stall the thread upon a determination that there are registers available for acquisition.

### Claim 20 (depends on 15)

The computer readable medium of claim 15, having instructions stored thereon, which when executed by one or more processors, further cause the processors to:
determine whether there is a virtual address to physical address translation hit in a mapping table upon a determination that the one or more source operands are stored in the shared set of registers;
translate virtual addresses of the group of one or more registers to one or more physical addresses upon a determination that there is a hit in the mapping table; and
return addresses of the group of one or more registers.

### Claim 21 (depends on 17)

The computer readable medium of claim 17, having instructions stored thereon, which when executed by one or more processors, further cause the processors to:
receive an instruction to release the group of one or more registers; and
release the group of one or more registers to the shared set of registers.
