Partitioning CUDA code for execution by a general purpose processor
Abstract
One embodiment of the present invention sets forth a technique for translating application programs written using a parallel programming model for execution on multi-core graphics processing unit (GPU) for execution by general purpose central processing unit (CPU). Portions of the application program that rely on specific features of the multi-core GPU are converted by a translator for execution by a general purpose CPU. The application program is partitioned into regions of synchronization independent instructions. The instructions are classified as convergent or divergent and divergent memory references that are shared between regions are replicated. Thread loops are inserted to ensure correct sharing of memory between various threads during execution by the general purpose CPU.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 36 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for partitioning an application program that comprises a plurality of statements, the method comprising: selecting a statement in the plurality of statements to analyze; if the statement is not a synchronization barrier instruction, then adding the statement to a current partition, or if the statement is a synchronization barrier instruction or if the statement is a start of a control-flow construct that includes a synchronization barrier instruction, then ending the current partition and storing the current partition in an output list of partitions; beginning a n
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (36)
Non-Patent Literature (5)
- "Posix Cell API," Symposium on Advanced Computing Systems and Infrastructures, IPSJ Symposium Series vol. 2007, No. 5, dated May 23, 2007, pp. 162-163 (4 pages total).
- Combined Search and Examination Report, GB App. No. 0905719.1, Jul. 17, 2009.
- D.Y. Hwang, et al., "Transform Nested Loops into MultiThread in Java Programming Language for Parallel Processing," KIPS Journal, vol. 5, No. 8, pp. 1997-2012, 1998.
- Eli Tilevich, et al. "J-Orchestra: Automatic Java Application Partitioning," Proc. of the 16th European Conference Ojbect Oriented Programming (ECOOP 2002), pp. 178-204, Jun. 10-14, 2002.
- Lee, et al., "Cetus-An Extensible Compiler Infrastructure for Source-toSource Transformation," 16th Annual Workshop on Languages and Compilers for Parallel Computing (LCPC' 2003), 2003. (15 pages).