Synchronizing scheduling tasks with atomic ALU
Abstract
A method of synchronizing a group of scheduled tasks within a parallel processing unit into a known state is described. The method uses a synchronization instruction in a scheduled task which triggers, in response to decoding of the instruction, an instruction decoder to place the scheduled task into a non-active state and forward the decoded synchronization instruction to an atomic ALU for execution. When the atomic ALU executes the decoded synchronization instruction, the atomic ALU performs an operation and check on data assigned to the group ID of the scheduled task and if the check is passed, all scheduled tasks having the particular group ID are removed from the non-active state.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 34 · Forward citations: 0.
Claims (19 — 3 Independent, 16 Dependent)
- Claim 1Independent Claim
A method of synchronizing a group of scheduled tasks into a known state within a parallel processing unit, the method comprising: in response to decoding, in an instruction decoder, a synchronization instruction in a scheduled task from a group of tasks, placing the scheduled task into a non-active state wherein no instructions in the scheduled task are executed except for the synchronization instruction, wherein the decoded synchronization instruction causes an ALU that executes the synchronization instruction to perform an operation on data assigned to the group of tasks; and in response to receiving, at a scheduler, a message from the ALU indicating that the data assigned to the group of tasks has passed a check on data assigned to the group of tasks, removing all scheduled tasks in the group from the non-active state.
- Claim 2Depends on #1
The method according to claim 1, wherein the decoded synchronization instruction causes the ALU that executes the synchronization instruction to perform the check on data assigned to the group of tasks.
- Claim 3Depends on #1
The method according to claim 1, further comprising: in response to receiving, at the scheduler, a message from an ALU indicating that the data assigned to the group of tasks has failed a check, leaving the scheduled task in the non-active state.
- Claim 4Depends on #1
The method according to claim 1, further comprising, at the scheduler and dependent upon an outcome of the check, either removing all scheduled tasks in the group from the non-active state or leaving the scheduled task in the non-active state.
- Claim 5Depends on #1
The method according to claim 1, wherein the ALU is an atomic ALU.
- Claim 6Depends on #1
The method according to claim 1, further comprising: performing, in the ALU, an operation on data assigned to the group of tasks to generate updated data assigned to the group of tasks; performing, in the ALU, a check on the updated data; and in response to the updated data passing the check, sending the message from the ALU to the scheduler indicating that the data assigned to the group of tasks passed the check.
- Claim 7Depends on #6
The method according to claim 6, further comprising: in response to the updated data passing the check, resetting the data assigned to the group of tasks.
- Claim 8Independent Claim
A scheduling module comprising: one or more queues arranged to store scheduled tasks; hardware logic arranged, in response to receiving an instruction from an instruction decoder decoding a synchronization instruction in a scheduled task from a group of tasks, to place the scheduled task into a non-active state wherein no instructions in the scheduled task are executed except for the synchronization instruction, wherein the decoded synchronization instruction causes an ALU that executes the synchronization instruction to perform an operation on data assigned to the group of tasks; and hardware logic arranged, in response to receiving a message from the ALU indicating that the data assigned to the group of tasks passed a check on data assigned to the group of tasks, to remove all scheduled tasks in the group from the non-active state.
- Claim 9Depends on #8
The scheduling module according to claim 8, wherein the decoded synchronization instruction causes the ALU that executes the synchronization instruction to perform the check on data assigned to the group of tasks.
- Claim 10Depends on #8
The scheduling module according to claim 8, wherein the scheduling module further comprises hardware logic arranged, in response to receiving a message from an ALU indicating that the data assigned to the group of tasks has failed a check, to leave the scheduled task in the non-active state.
- Claim 11Depends on #8
The scheduling module according to claim 8, wherein the scheduling module further comprises hardware logic arranged to, dependent upon an outcome of the check, either remove all scheduled tasks in the group from the non-active state or leave the scheduled task in the non-active state.
- Claim 12Depends on #8
The scheduling module according to claim 8, wherein the ALU is an atomic ALU.
- Claim 13Independent Claim
A processor comprising: a scheduling module including: one or more queues arranged to store scheduled tasks, and hardware logic arranged, in response to receiving an instruction from an instruction decoder decoding a synchronization instruction in a scheduled task from a group of tasks, to place the scheduled task into a non-active state wherein no instructions in the scheduled task are executed except for the synchronization instruction, wherein the decoded synchronization instruction causes an ALU that executes the synchronization instruction to perform an operation on data assigned to the group of tasks; and hardware logic arranged, in response to receiving a message from the ALU indicating that the data assigned to the group of tasks passed a check on data assigned to the group of tasks, to remove all scheduled tasks in the group from the non-active state.
- Claim 14Depends on #13
The processor according to claim 13, wherein the decoded synchronization instruction causes the ALU that executes the synchronization instruction to perform the check on data assigned to the group of tasks.
- Claim 15Depends on #13
The processor according to claim 13, wherein the scheduling module further comprises hardware logic arranged, in response to receiving a message from an ALU indicating that the data assigned to the group of tasks has failed a check, to leave the scheduled task in the non-active state.
- Claim 16Depends on #13
The processor according to claim 13, wherein the scheduling module further comprises hardware logic arranged to, dependent upon an outcome of the check, either remove all scheduled tasks in the group from the non-active state or leave the scheduled task in the non-active state.
- Claim 17Depends on #13
The processor according to claim 13, wherein the ALU is an atomic ALU.
- Claim 18Depends on #13
The processor according to claim 13, further comprising: a processing block comprising an ALU arranged to perform an operation on data assigned to the group of tasks to generate updated data assigned to the group of tasks and to perform a check on the updated data, and in response to the updated data passing the check, to send a message from the ALU to the scheduling module indicating that the data assigned to the group of tasks passed the check.
- Claim 19Depends on #18
The processor according to claim 18, wherein the ALU is further arranged, in response to the updated data passing the check, to reset the data assigned to the group of tasks.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS AND CLAIM OF PRIORITY This application is a continuation under 35 U.S.C. 120 of copending application Ser. No. 17/087,837 filed Nov. 3, 2020, which is a continuation of prior application Ser. No. 16/010,813 filed Jun. 18, 2018, now U.S. Pat. No. 10,860,370, which claims foreign priority under 35 U.S.C. 119 from United Kingdom Application No. 1709649.6 filed Jun. 16, 2017. BACKGROUND A graphics processing unit (GPU) comprises a highly parallel structure which is designed to efficiently process large amounts of data in parallel. GPUs are typically used for computer graphics (e.g. to render 3D images on a screen), however they may also be used for other operations which benefit from the parallelism they provide. The embodiments described below are provided by way of example only and are not limiting of implementations which solve any or all of the disadvantages of known GPUs or other parallel processing units. SUMMARY This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. A method of synchronizing a group of scheduled tasks within a parallel processing unit into a known state is described. The method uses a synchronization instruction in a scheduled task which triggers, in response to decoding of the instruction, an instruction decoder to place the scheduled task into a non-active state and forward the decoded synchronization instruction to an atomic ALU for execution. When the atomic ALU executes the decoded synchronization instruction, the atomic ALU performs an operation and check on data assigned to the group ID of the scheduled task and if the check is passed, all scheduled tasks having the particular group ID are removed from the non-active state. A fi
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (34)
Non-Patent Literature (10)
- Chang et al;
- “
- The Effects of Explicitly Parallel Mechanisms on the Multi-ALU Processor Cluster Pipeline
- ”
- copyright 1998 IEEE. (Year: 1998); pp. 474-481.
- Karkhanis et al;
- “
- Saving Energy with Just in Time Instruction Delivery
- ”
- Copyright 2002 ACM. 1-58113-475-4/02/0008; (Year:2002); pp. 178-183.