Technique for computational nested parallelism
Abstract
One embodiment of the present invention sets forth a technique for performing nested kernel execution within a parallel processing subsystem. The technique involves enabling a parent thread to launch a nested child grid on the parallel processing subsystem, and enabling the parent thread to perform a thread synchronization barrier on the child grid for proper execution semantics between the parent thread and the child grid. This technique advantageously enables the parallel processing subsystem to perform a richer set of programming constructs, such as conditionally executed and nested operations and externally defined library functions without the additional complexity of CPU involvement.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 47 · Forward citations: 0.
Claims (23 — 2 Independent, 21 Dependent)
- Claim 1Independent Claim
A computer-readable storage medium having stored thereon instructions, which if performed by one or more processors, cause the one or more processors to at least: launch a kernel to execute a parent thread within a multiprocessor; launch, from within the kernel, a child thread grid comprising one or more child thread arrays within the multiprocessor; in response to a synchronization function call, block execution of the parent thread while waiting for the child thread grid to complete; and de-allocate resources used by the parent thread.
- Claim 2Depends on #1
The computer-readable storage medium of claim 1, wherein the one or more processors comprise a graphics processing unit (GPU).
- Claim 3Depends on #1
The computer-readable storage medium of claim 1, wherein the instructions, if performed by the one or more processors, cause the one or more processors to resume execution of the parent thread after completion of execution of the child thread grid.
- Claim 4Depends on #1
The computer-readable storage medium of claim 1, wherein the instructions, if performed by the one or more processors, cause the one or more processors to store execution state of the parent thread in response to the synchronization function call.
- Claim 5Depends on #1
The computer-readable storage medium of claim 1, wherein the blocking execution of the parent thread further comprises causing the one or more processors to ensure memory coherence between the parent thread and the child thread grid.
- Claim 6Depends on #1
The computer-readable storage medium of claim 1, wherein the instructions, if performed by the one or more processors, cause the one or more processors to resume execution of the parent thread in response to notification that the child thread grid has completed execution.
- Claim 7Depends on #1
The computer-readable storage medium of claim 1, wherein: the one or more processors comprise a graphics processing unit (GPU); and the instructions, if performed by the one or more processors, cause the one or more processors to: store execution state of the parent thread in response to the synchronization function call; receive a notification that execution of the child thread grid has completed; and resume execution of the parent thread in response to notification that the child thread grid has completed execution.
- Claim 8Depends on #1
The computer-readable storage medium of claim 1, wherein the one or more processors comprise a graphics processing unit (GPU) and wherein the GPU comprises the multiprocessor.
- Claim 9Depends on #1
The computer-readable storage medium of claim 1, wherein the parent thread comprises an instruction following the synchronization function call and wherein the instructions of the computer-readable storage medium, if performed by the one or more processors, cause the one or more processors to continue execution at the instruction following the synchronization function call.
- Claim 10Depends on #1
The computer-readable storage medium of claim 1, wherein the instructions further cause the one or more processors to restore a saved state of the parent thread from a continuation state buffer upon completion of the child thread grid.
- Claim 11Independent Claim
A processor, comprising: a plurality of cores; a register file; an LI cache; a crossbar unit; an instruction cache; a scheduler; the processor to execute instructions to: launch a kernel to execute a parent thread within a multiprocessor; launch, from within the kernel, a child thread grid comprising one or more child thread arrays within the multiprocessor; in response to a synchronization function call, block execution of the parent thread while waiting for the child thread grid to complete; and de-allocate resources used by the parent thread.
- Claim 12Depends on #11
The processor of claim 11, wherein the processor comprises a graphics processing unit (GPU) and the parent thread comprises a parent thread array.
- Claim 13Depends on #11
The processor of claim 11, wherein the instructions, if performed by the processor, causes the processor to cause a scheduler to notify the parent thread of completion of execution of the child thread grid.
- Claim 14Depends on #11
The processor of claim 11, wherein the instructions, if performed by the processor, causes the processor to store execution state of the parent thread to a continuation state buffer in response to the synchronization function call.
- Claim 15Depends on #11
The processor of claim 11, wherein the instructions, if executed by the processor, causes the processor to ensure memory coherence between the parent thread and the child thread grid.
- Claim 16Depends on #11
The processor of claim 11, wherein the instructions, if executed by the processor, causes the processor to restore an execution state of the parent thread in response to a notification that the child thread grid has completed execution.
- Claim 17Depends on #11
The processor of claim 11, wherein: the processor comprises a graphics processing unit (GPU); and the instructions, if performed by the processor, causes the processor to: store execution state of the parent thread in response to the synchronization function call; receive a notification that execution of the child thread grid has completed; and resume execution of the parent thread in response to a notification that the child thread grid has completed execution.
- Claim 18Depends on #11
The processor of claim 11, wherein the processor comprises a graphics processing unit (GPU) and the GPU comprises the multiprocessor.
- Claim 19Depends on #11
The processor of claim 11, wherein the parent thread comprises an instruction following the synchronization function call and wherein the instructions, if performed by the processor, causes the processor to continue execution at the instruction following the synchronization function call.
- Claim 20Depends on #11
The processor of claim 11, wherein the child thread grid has a higher priority than the parent thread.
- Claim 21Depends on #11
The processor of claim 11, wherein the instructions further cause the one or more processors to restore a saved state of the parent thread from a continuation state buffer upon completion of the child thread grid.
- Claim 22Depends on #1
The computer-readable storage medium of claim 1, wherein the child thread grid has a higher priority than the parent thread.
- Claim 23Depends on #1
The computer-readable storage medium of claim 1, wherein the child thread grid is launched to perform a command stream generated by the parent thread.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of U.S. application Ser. No. 15/368,434, entitled “ TECHNIQUE FOR COMPUTATIONAL NESTED PARALLELISM ” filed Dec. 2, 2016, which is a continuation of U.S. application Ser. No. 13/462,649 entitled “ TECHNIQUE FOR COMPUTATIONAL NESTED PARALLELISM ” filed on May 2, 2012, now U.S. Pat. No. 9,513,975), the disclosures of which are incorporated by reference herein in their entirety. BACKGROUND OF THE INVENTION Field of the Invention The present invention generally relates to parallel computation systems and, more specifically, to a technique for computational nested parallelism. Description of the Related Art In conventional computing systems having both a central processing unit (CPU) and a graphics processing unit (GPU), the CPU determines which specific computational tasks are performed by the GPU and in what order. A GPU computational task typically comprises highly parallel, highly similar operations across a parallel dataset, such as an image or set of images. In a conventional GPU execution model, the CPU initiates a particular computational task by selecting a corresponding thread program and instructing the GPU to execute a set of parallel instances of the thread program. In the conventional GPU execution model, only the CPU may initiate execution of a thread program on the GPU. After all thread instances complete execution, the GPU must notify the CPU and wait for another computational task to be issued by the CPU. Notifying the CPU and waiting for the next computational task is typically a blocking, serialized operation that leaves certain resources within the GPU temporarily idle, thereby reducing overall system performance. Performance may be improved in certain scenarios by queuing up sequential computational tasks in a pushbuffer, from which the GPU may pull and perform work without waiting for the CPU. Computational tasks comprising fixed data-flow processing pipelines benefit from th
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 (47)
Non-Patent Literature (10)
- Liang et al.,
- “
- Enabling Mixed OpenMP/MPI Programming on Hybrid CPU/GPU Computing Architecture
- ”
- , 2012, IEEE, pp. 2369-2377. (Year: 2012).
- Steffen, et al.,
- “
- Improving SIMT Efficiency of Global Rendering Algorithms with Architectural Support for Dynamic Micro-Kernels
- ”
- , 2010 , 2010 43rd Annual IEEE/ACM International Symposium on Microarchitecture, pp. 237-248. (Year: 2010).