Alternative loop limits for accessing data in multi-dimensional tensors
Abstract
Methods, systems, and apparatus for accessing a N-dimensional tensor are described. In some implementations, a method includes, for each of one or more first iterations of a first nested loop, performing iterations of a second nested loop that is nested within the first nested loop until a first loop bound for the second nested loop is reached. A number of iterations of the second nested loop for the one or more first iterations of the first nested loop is limited by the first loop bound in response to the second nested loop having a total number of iterations that exceeds a value of a hardware property of the computing system. After a penultimate iteration of the first nested loop has completed, one or more iterations of the second nested loop are performed for a final iteration of the first nested loop until an alternative loop bound is reached.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 9.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method performed by a computing system for accessing an N-dimensional tensor, comprising: determining that a number of tensor elements of a particular dimension of the N-dimensional tensor is not an exact multiple of a number of individual computing units of the computing system that will be used to determine memory addresses for the tensor elements and in response: generating a first loop for controlling a number of iterations of a second loop used to traverse the particular dimension; determining a first loop bound for the second loop and an alternative loop bound for the second loop based
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (9 of 9 total)
References Cited — Backward Prior Art (27)
Non-Patent Literature (5)
- Ahlander, K. (2002). Einstein summation for multidimensional arrays. Computers & Mathematics with Applications, 44(8-9), 1007-1017. (Year: 2002).
- Aho et al. "Compilers-Principles, Techniques, Tools," Compiler-Principles Techniques Tools, Addison Wesley, Jan. 1, 2007, 6 pages.
- Aho et al. “Compilers—Principles, Techniques, Tools,” Compiler—Principles Techniques Tools, Addison Wesley, Jan. 1, 2007, 6 pages.
- Balasa, F. et al. (1994). Transformation of nested loops with modulo indexing to affine recurrences. Parallel Processing Letters, 4(03), 271-280. (Year: 1994).
- Bibireata, A. et al. (2004). "Memory-Constrained Data Locality Optimization for Tensor Contractions". LCPC 2003, LNCS 2958, pp. 93-108, 2004. (Year: 2004).