Efficient generation of SIMD code in presence of multi-threading and other false sharing conditions and in machines having memory protection support
Abstract
A computer implemented method, system and computer program product for automatically generating SIMD code. The method begins by analyzing data to be accessed by a targeted loop including at least one statement, where each statement has at least one memory reference, to determine if memory accesses are safe. If memory accesses are safe, the targeted loop is simdized. If not safe, it is determined if a scheme can be applied in which safety need not be guaranteed. If such a scheme can be applied, the targeted loop is simdized according to the scheme. If such a scheme cannot be applied, it is determined if padding is appropriate. If padding is appropriate, the data is padded and the targeted loop is simdized. If padding is not appropriate, non-simdized code is generated based on the targeted loop for handling boundary conditions, the targeted loop is simdized and combined with the non-simdized code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 16.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method for automatically generating SIMD code, comprising: analyzing, by a processing unit, data to be accessed by a targeted loop, the targeted loop comprising at least one statement, each at least one statement having at least one memory reference, to determine whether memory accesses are both memory protection system safe and false sharing safe; responsive to a determination that memory accesses are both memory protection system safe and false sharing safe, simdizing the targeted loop; responsive to a determination that memory accesses are not both memory protection s
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 16 total)
References Cited — Backward Prior Art (17)
Non-Patent Literature (5)
- Eichenberger et al. Vectorization for SIMD Architectures with Alignment Constraints, Jun. 9, 2004, ACM, (Eichenberger-2004.pdf).
- Eichenberger et al. Vectorization for SIMD Architectures with Alignment Constraints, Jun. 9, 2004, ACM, (Eichenberger—2004.pdf).
- Gerald Cheong et al., An Optimizer for Multimedia Instruction Sets, Aug. 14, 1997, Stanford University (Cheong-1997.pdf).
- Gerald Cheong et al., An Optimizer for Multimedia Instruction Sets, Aug. 14, 1997, Stanford University (Cheong—1997.pdf).
- Ho et al. "Managing Side Effects on Shared Data", University of California at Berkeley, 1993, (Ho-Kinson.pdf, pp. 210-211, 221).