Compiler-initiated tile replacement to enable hardware acceleration resources
Abstract
A processing system includes a compiler that automatically identifies sequences of instructions of tileable source code that can be replaced with tensor operations. The compiler generates enhanced code that replaces the identified sequences of instructions with tensor operations that invoke a special-purpose hardware accelerator. By automatically replacing instructions with tensor operations that invoke the special-purpose hardware accelerator, the compiler makes the performance improvements achievable through the special-purpose hardware accelerator available to programmers using high-level programming languages.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 2.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method comprising: in response to receiving an indication that source code to be compiled at a processing system is tileable such that a tile representing at least one function of the source code performs a memory access to a block of data, determining at a compiler of the processing system whether compiler-generated code comprising a plurality of tiles comprises a sequence of instructions for a tile that can be replaced with a tensor operation executable at a special-purpose hardware accelerator of the processing system; and generating code that replaces the sequence of instructions of the
- Claim 2Depends on #1
The method of claim 1 , further comprising: generating a wrapper to invoke exec
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (12)
Non-Patent Literature (5)
- Gan, Ge et al., “Tile Percolation: an OpenMP Tile Aware Parallelization Technique for the Cyclops-64 Multicore Processor,” European Conference on Parallel Processing, Lecture Notes in Computer Science, vol. 5704. Springer, Berlin, Heidelberg, pp. 839-850, University of Delaware, Newark, Delaware 197
- Gan, Ge, et al., “Tile Percolation: an OpenMP Tile Aware Parallelization Technique for the Cyclops-64 Multicore Processor”, Euro-Par, 2009, 13 pages.
- International Search Report dated Jul. 20, 2021 for Application No. PCT/US2021/024154, 8 pages.
- J. Kim et al., “A Code Generator for High-Performance Tensor Contractions on GPUs,” 2019 IEEE/ACM International Symposium on Code Generation and Optimization (CGO), 2019, pp. 85-95, doi: 10.1109/CGO.2019.8661182. (Year: 2019).
- Leback, Brent, “Bringing Tensor Cores to Standard Fortran”, NVIDIA Developer, Aug. 7, 2020, 8 pages.