# US 2023/0409322 A1 · Processor circuitry to determine an enablement state for a constraint on multiple threads of execution

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

- Number: US 2023/0409322 A1
- Document ID: US20230409322A1
- Status: Published application
- Kind: A1
- Application number: 17/841,555
- Filed: 2022-06-15
- Published: 2023-12-21
- Earliest claimed: 2022-06-15
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Simon Pennycook; Christopher Hughes
- Web page: https://patentgrep.com/patent/US20230409322A1

## CPC

- G06F 9/3004: {to perform operations on memory}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/30101: {Special purpose registers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques and mechanisms for determining a relative order in which respective microoperations of execution threads are performed. In an embodiment, a processor comprises a control register and circuitry which enables an executing program to set a control parameter which is provided by the control register. The control parameter determines whether the processor is to provide a control which applies one or more synchronization requirements to threads of execution which are of the same thread group. In another embodiment, the control is configurable to selectively provide implicit synchronization between some or all such threads.

## Claims

### Claim 1

A processor comprising:
a control register;
first circuitry to execute an instruction of a program, wherein the first circuitry to execute the instruction comprises the first circuitry to perform an access to the control register, wherein the program is to provide a thread group which comprises a first thread of execution and a second thread of execution; and
second circuitry coupled to the control register and the first circuitry, the second circuitry to transition, based on the access, between:
a first operational mode wherein a synchronization control is enabled, wherein the synchronization control is to apply one or more synchronization requirements to threads of execution; and
a second operational mode wherein the synchronization control is disabled; and
wherein the second circuitry is further to determine, based on one of the first operational mode or the second operational mode, an order of execution of a first one or more microoperations of the first thread of execution relative to a second one or more microoperations of the second thread of execution.

### Claim 2 (depends on 1)

The processor of claim 1, wherein:
according to the one or more synchronization requirements, an execution of the first one or more microoperations is to be performed after a completion of an execution of the second one or more microoperations;
based on the access, the second circuitry is to transition to the second operational mode; and
the second circuitry to determine the order of execution comprises, based on the second operational mode, the second circuitry to prevent a delay to an execution of the first one or more microoperations.

### Claim 3 (depends on 1)

The processor of claim 1, wherein:
the first thread of execution is to follow a first path of a branch instruction of the program;
the second thread of execution is to follow a second path of the branch instruction;
according to the one or more synchronization requirements, an execution of the first one or more microoperations based on the first path is to be performed prior to an execution of the second one or more microoperations based on the second path;
based on the access, the second circuitry is to transition to the second operational mode; and
the second circuitry to determine the order of execution comprises, based on the second operational mode, the second circuitry to select the second one or more microoperations to be executed prior to an execution of the first one or more microoperations.

### Claim 4 (depends on 1)

The processor of claim 1, wherein:
the instruction is a first instruction;
the access is a first access;
based on the first access, the second circuitry is to transition to the second operational mode;
the first circuitry is further to execute a second instruction of the program, wherein the first circuitry is to perform a second access to the control register;
the second circuitry, based on the second access, is to transition from the second operational mode to the first operational mode; and
the second circuitry is further to determine, based on the first operational mode, an order of execution of a third one or more microoperations of the first thread of execution relative to a fourth one or more microoperations of the second thread of execution.

### Claim 5 (depends on 1)

The processor of claim 1, wherein:
the second circuitry is further to detect a condition wherein a target of the first one or more microoperations spans multiple lines of a cache;
according to the one or more synchronization requirements, the second circuitry is to provide, based on the condition, an indication of a delay to be applied before an execution of the second one or more microoperations; and
based on the second mode, the second circuitry is to forego a communication of the indication of the delay.

### Claim 6 (depends on 1)

The processor of claim 1, wherein:
the control register is a first control register of a first core of the processor;
the synchronization control is a first synchronization control to apply the one or more synchronization requirements at the first core; and
the processor further comprises a second control register to determine an enablement state of a second synchronization control which is to apply the one or more synchronization requirements at a second core of the processor.

### Claim 7 (depends on 1)

The processor of claim 1, wherein:
an execution of a first instruction by the first thread of execution is to comprise an execution of a plurality of microoperations which comprise the first one or more microoperations and a third one or more microoperations;
according to the one or more synchronization requirements, an execution of the plurality of microoperations is to be performed after a completion of an execution of the second one or more microoperations; and
based on the second operational mode, the second one or more microoperations are to be executed after the first one or more microoperations, and before the third one or more microoperations.

### Claim 8 (depends on 1)

The processor of claim 1, wherein the first thread of execution and the second thread of execution are each to be based on a single instruction, multiple data (SIMD) instruction.

### Claim 9 (depends on 1)

The processor of claim 1, wherein the first operational mode is a default mode of the second circuitry.

### Claim 10

A method comprising:
executing an instruction of a program by a processor, wherein executing the instruction comprises performing an access to a control register of the processor, wherein the program is to provide a thread group which comprises a first thread of execution and a second thread of execution; and
based on the access, transitioning scheduler circuitry of the processor between:
a first operational mode wherein a synchronization control is enabled, wherein the synchronization control is to apply one or more synchronization requirements to threads of execution; and
a second operational mode wherein the synchronization control is disabled; and
with the scheduler circuitry, determining, based on one of the first operational mode or the second operational mode, an order of execution of a first one or more microoperations of the first thread of execution relative to a second one or more microoperations of the second thread of execution.

### Claim 11 (depends on 10)

The method of claim 10, wherein:
according to the one or more synchronization requirements, an execution of the first one or more microoperations is to be performed after a completion of an execution of the second one or more microoperations;
transitioning the scheduler circuitry based on the access comprises transitioning the scheduler circuitry to the second operational mode; and
determining the order of execution comprises, based on the second operational mode, preventing a delay to an execution of the first one or more microoperations.

### Claim 12 (depends on 10)

The method of claim 10, wherein:
the first thread of execution is to follow a first path of a branch instruction of the program;
the second thread of execution is to follow a second path of the branch instruction;
according to the one or more synchronization requirements, an execution of the first one or more microoperations based on the first path is to be performed prior to an execution of the second one or more microoperations based on the second path;
transitioning the scheduler circuitry based on the access comprises transitioning the scheduler circuitry to the second operational mode; and
determining the order of execution comprises, based on the second operational mode, selecting the second one or more microoperations to be executed prior to an execution of the first one or more microoperations.

### Claim 13 (depends on 10)

The method of claim 10, wherein:
the instruction is a first instruction;
the access is a first access;
transitioning the scheduler circuitry based on the first access comprises transitioning the scheduler circuitry to the second operational mode; and
the method further comprises:
executing a second instruction of the program, wherein executing the second instruction comprises performing a second access to the control register; and
based on the second access, transitioning the scheduler circuitry from the second operational mode to the first operational mode;
with the scheduler circuitry, determining, based on the first operational mode, an order of execution of a third one or more microoperations of the first thread of execution relative to a fourth one or more microoperations of the second thread of execution.

### Claim 14 (depends on 10)

The method of claim 10, further comprising detecting a condition wherein a target of the first one or more microoperations spans multiple lines of a cache;
wherein:
according to the one or more synchronization requirements, the scheduler circuitry is to provide, based on the condition, an indication of a delay to be applied before an execution of the second one or more microoperations; and
based on the second mode, the scheduler circuitry foregoes providing the indication of the delay.

### Claim 15 (depends on 10)

The method of claim 10, wherein:
the control register is a first control register of a first core of the processor;
the synchronization control is a first synchronization control to apply the one or more synchronization requirements at the first core; and
a second control register of the processor is to determine an enablement state of a second synchronization control which is to apply the one or more synchronization requirements at a second core of the processor.

### Claim 16 (depends on 10)

The method of claim 10, wherein:
an execution of a first instruction by the first thread of execution comprises an execution of a plurality of microoperations which comprise the first one or more microoperations and a third one or more microoperations;
according to the one or more synchronization requirements, an execution of the plurality of microoperations is to be performed after a completion of an execution of the second one or more microoperations; and
based on the second operational mode, the second one or more microoperations are executed after the first one or more microoperations, and before the third one or more microoperations.

### Claim 17

A system comprising:
a memory;
a processor coupled to the memory, the processor comprising:
a control register;
first circuitry to execute an instruction of a program, wherein the first circuitry to execute the instruction comprises the first circuitry to perform an access to the control register, wherein the program is to provide a thread group which comprises a first thread of execution and a second thread of execution; and
second circuitry coupled to the control register and the first circuitry, the second circuitry to transition, based on the access, between:
a first operational mode wherein a synchronization control is enabled, wherein the synchronization control is to apply one or more synchronization requirements to threads of execution; and
a second operational mode wherein the synchronization control is disabled; and
wherein the second circuitry is further to determine, based on one of the first operational mode or the second operational mode, an order of execution of a first one or more microoperations of the first thread of execution relative to a second one or more microoperations of the second thread of execution; and
a display device coupled to the processor and the memory, the display device to display an image based on the first thread of execution and the second thread of execution.

### Claim 18 (depends on 17)

The system of claim 17, wherein:
according to the one or more synchronization requirements, an execution of the first one or more microoperations is to be performed after a completion of an execution of the second one or more microoperations;
based on the access, the second circuitry is to transition to the second operational mode; and
the second circuitry to determine the order of execution comprises, based on the second operational mode, the second circuitry to prevent a delay to an execution of the first one or more microoperations.

### Claim 19 (depends on 17)

The system of claim 17, wherein:
the first thread of execution is to follow a first path of a branch instruction of the program;
the second thread of execution is to follow a second path of the branch instruction;
according to the one or more synchronization requirements, an execution of the first one or more microoperations based on the first path is to be performed prior to an execution of the second one or more microoperations based on the second path;
based on the access, the second circuitry is to transition to the second operational mode; and
the second circuitry to determine the order of execution comprises, based on the second operational mode, the second circuitry to select the second one or more microoperations to be executed prior to an execution of the first one or more microoperations.

### Claim 20 (depends on 17)

The system of claim 17, wherein:
an execution of a first instruction by the first thread of execution is to comprise an execution of a plurality of microoperations which comprise the first one or more microoperations and a third one or more microoperations;
according to the one or more synchronization requirements, an execution of the plurality of microoperations is to be performed after a completion of an execution of the second one or more microoperations; and
based on the second operational mode, the second one or more microoperations are to be executed after the first one or more microoperations, and before the third one or more microoperations.
