Cooperative thread array reduction and scan operations
Abstract
One embodiment of the present invention sets forth a technique for performing aggregation operations across multiple threads that execute independently. Aggregation is specified as part of a barrier synchronization or barrier arrival instruction, where in addition to performing the barrier synchronization or arrival, the instruction aggregates (using reduction or scan operations) values supplied by each thread. When a thread executes the barrier aggregation instruction the thread contributes to a scan or reduction result, and waits to execute any more instructions until after all of the threads have executed the barrier aggregation instruction. A reduction result is communicated to each thread after all of the threads have executed the barrier aggregation instruction and a scan result is communicated to each thread as the barrier aggregation instruction is executed by the thread.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 2.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A subsystem for performing an aggregation operation across multiple threads, the subsystem comprising: a barrier instruction execution unit that is configured to: receive a barrier aggregation instruction that specifies the aggregation operation for execution by a first thread of the multiple threads; generate an aggregation result based on the aggregation operation; communicate the aggregation result to each thread of the multiple threads; and waiting until each of the multiple threads has received the barrier aggregation instruction before any additional instructions are executed.
- Claim 2Depends on #1
The subsystem of claim 1 , wherein the barrier aggregation instruction specifies a number of the multiple threads that are synchronized by the barrier aggregation instruction.
- Claim 3Depends on #2
The subsystem of claim 2 , wherein ea
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗