Method and structure for producing high performance linear algebra routines using streaming
Abstract
A method (and structure) of improving at least one of speed and efficiency when executing a linear algebra subroutine on a computer having a memory hierarchical structure including at least one cache, the computer having M levels of caches and a main memory. Based on sizes, it is determined, for a level 3 matrix multiplication processing, which matrix will have data for a submatrix block residing in a lower level cache of the computer and which two matrices will have data for submatrix blocks residing in at least one higher level cache or a memory. From a plurality of six kernels, two kernels are selected as optimal to use for executing the level 3 matrix multiplication processing as data streams from different levels of the M levels of cache, such that the processor will switch back and forth between the two selected kernels as streaming data traverses the different levels of cache. Data from the selected two matrices is streamed, for executing the level 3 matrix multiplication processing, so that the submatrix block residing in the lower level cache remains resident in the lower level cache.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 10.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of improving at least one of speed and efficiency when executing a linear algebra subroutine on a computer having a memory hierarchical structure including at least one cache, said computer having M levels of caches and a main memory, said method comprising: determining, based on sizes, for a level 3 matrix multiplication processing, which matrix will have data for a submatrix block residing in a lower level cache of said computer and which two matrices will have data for submatrix blocks residing in at least one higher level cache or a memory; selecting, from a plurality of six kerne
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (18)
Non-Patent Literature (5)
- "Improving performance of linear algebra algorithms for dense matrices, using algorithmic prefetch" R. C. Agarwal, F. G. Gustavson , M. Zubair; IBM Journal of Research and Development; vol. 38, Issue 3 (May 1994); pp. 265-275; Year of Publication: 1994.
- Agarwal et al., A High Performance Algorithm Using Pre-Processing for the Sparse Matrix-Vector Multiplication, 1992, IEEE, pp. 32-41.
- Fred G. Gustavson and Andre Henriksson and Isak Jonsson and Bo Kagstrom and Per Ling: Superscalar GEMM-based Level 3 BLAS The On-going Evolution of a Portable and High-Performance Library (1998); Applied Parallel Computing, Published 1998, Springer, pp. 207-215.
- Gunnels, et al., "A Family of High-Performance Matrix Multiplication Algorithms", ICCS 2001, LNCS 2073, pp. 51-60, 2001 (also available at http://www.cs..utexas.edu/users/flame/pubs/ICCS2001.pdf.
- Gunnels, et al., "A Novel Theoretical Model Produces Matrix Multiplication Algorithms That Predict Current Practice", IBM Research Report RC23443 (W0411-176), Nov. 19, 2004.