SIMD code generation for loops with mixed data lengths
Abstract
Generating loop code to execute on Single-Instruction Multiple-Datapath (SIMD) architectures, where the loop operates on datatypes having different lengths, is disclosed. Further, a preferred embodiment of the present invention includes a novel technique to efficiently realign or shift arbitrary streams to an arbitrary offset, regardless whether the alignments or offsets are known at the compile time or not. This technique enables the application of advanced alignment optimizations to runtime alignment. Length conversion operations, for packing and unpacking data values, are included in the alignment handling framework. These operations are formally defined in terms of standard SIMD instructions that are readily available on various SIMD platforms. This allows sequential loop code operating on datatypes of disparate length to be transformed (“simdized”) into optimized SIMD code through a fully automated process.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 29 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: identifying a loop iterating over a plurality of continuous streams of memory in a stride-one fashion; generating a data reorganization graph from the loop, wherein the data reorganization graph tracks stream offsets for the plurality of continuous streams of memory, wherein one of the stream offsets associated with a particular memory stream corresponds to a remainder of a byte memory address of a first element accessed by the particular memory stream divided by a byte width of a targeted Single-Instruction Multiple-Datapath unit; selecting the partic
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 (29)
Non-Patent Literature (5)
- Allen et al., "Automatic Translation of FORTRAN Programs to Vector Form," ACM Transactions on Programming Languages and Systems, v. 9, No. 4, Oct. 1987, p. 491-542.
- AltiVec(TM) Technology Programming Interface Manual, 1999, 262 pages.
- Arafeh et al., "Vectorization and Parallelization Interactive Assistant," 1988, ACM 0-89791-260-8/88/0002/0573, pp. 573-577.
- Bik et al., "Automatic Intra-Register Vectorizatoin for the Intel Architecture," International Journal of Parallel Programming, vol. 30, No. 2, Apr. 2002 (p. 65-98).
- Chatterjee et al., "Modeling Data-Parallel Programs with the Alignment-Distribution Graph," 6th Annual Workshop on Languages and Compilers for Parallelism, Aug. 1993, 28 pages.