Framework for integrated intra- and inter-loop aggregation of contiguous memory accesses for SIMD vectorization
Abstract
A method, computer program product, and information handling system for generating loop code to execute on Single-Instruction Multiple-Datapath (SIMD) architectures, where the loop contains multiple non-stride-one memory accesses that operate over a contiguous stream of memory is disclosed. A preferred embodiment identifies groups of isomorphic statements within a loop body where the isomorphic statements operate over a contiguous stream of memory over the iteration of the loop. Those identified statements are then converted into virtual-length vector operations. Next, the hardware's available vector length is used to determine a number of virtual-length vectors to aggregate into a single vector operation for each iteration of the loop. Finally, the aggregated, vectorized loop code is converted into SIMD operations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer program product stored on a computer storage medium, the computer storage medium containing instructions for execution by a computer, which, when executed by the computer, cause the computer to implement a method of generating code, the method comprising: identifying a loop within a piece of program code; identifying, within a body of the loop, a plurality of isomorphic statements having adjacent memory accesses; transforming the plurality of isomorphic statements into one or more vector operations; calculating a blocking factor n, wherein the blocking factor n is calculated as a qu
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 (27)
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, Bassel R., "Vectorization and parallelization interactive assistant," 1988, ACM, p. 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," 6<SUP>th </SUP>Annual Workshop on Languages and Compliers for Parallelism, Aug. 1993, 28 pages.