Mapping vector representations onto a predicated scalar multi-threaded system
Abstract
A system implementing a method for generating code for execution based on a SIMT model with parallel units of threads is provided. The system identifies a loop within a program that includes vector processing. The system generates instructions for a thread that include an instruction to set a predicate based on whether the thread of a parallel unit corresponds to a vector element. The system also generates instructions to perform the vector processing via scalar operations predicated on the predicate. As a result, the system generates instructions to perform the vector processing but to avoid branch divergence within the parallel unit of threads that would be needed to check whether a thread corresponds to a vector element.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 21 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-readable storage memory containing computer-executable instructions for controlling a computer to generate code for execution based on a single-instruction multiple thread (“SIMT”) model with parallel units of threads, by a method comprising: determining whether a program includes vector processing; and upon determining that the program includes vector processing, generating instructions for a thread that include an instruction to set a predicate based on whether the thread of a parallel unit corresponds to an element of a vector as indicated by the length of the vector and a thread
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (21)
Non-Patent Literature (5)
- Jablin et al., "Warp-Aware Trace Scheduling for GPUs", 2014 ACM, PACT'14, Aug. 2014, pp. 163-174; .
- Jablin et al., "Warp-Aware Trace Scheduling for GPUs", 2014 ACM, PACT'14, Aug. 2014, pp. 163-174; <http://dl.acm.org/results.cfm?h=1&cfid=477181031&cftoken=37040274>.
- Lindholm, Erik et al., "NVIDIA Tesla: A unified Graphics and Computing Architecture," IEEE, Mar.-Apr. 2008, pp. 39-55.
- Mahlke, Scott et al, "A Comparison of Full and Partial Predicated Execution Support for ILP Processors," ISCA '95, ACM, New York, NY, 1995, 12 pages.
- Mahlke, Scott et al., "Effective Compiler Support for Predicated Execution Using the Hyperblock," IEEE, 1992, pp. 45-54.