Memory reference metadata for compiler optimization
Abstract
An apparatus includes a memory and a compiling processor configured to: generate, by at least one of a group consisting of a compiler and a runtime executing on the compiling processor, arguments for executing a compiled kernel, determine, by the at least one of the group executing on the compiling processor, whether a first memory reference to a first memory region and a second memory reference to a second memory region of the arguments refer to a same memory region, generate, by the at least one of the group, metadata associated with the first memory reference and the second memory reference based on the determination, wherein the metadata indicates a relationship between the first memory region and the second memory region. The at least one of the compiler and the runtime may recompile the kernel based on the metadata, and instruct a target processor to execute the recompiled kernel.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of compiling kernels for execution comprising: compiling, by a compiler executing on a compiling processor, a kernel; generating, by at least one of a group consisting of the compiler and a driver executing on the compiling processor, kernel arguments for executing code of the compiled kernel; determining, by the at least one of the group consisting of the compiler and the driver executing on the compiling processor, whether a first memory reference to a first memory region of the kernel arguments and a second memory reference to a second memory region of the kernel arguments refer to
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,929,161 B2 | Runtime GPU/CPU selection | 2021 | 1 |
References Cited — Backward Prior Art (18)
Non-Patent Literature (5)
- “OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 1.1, Chapter 14,” Jan. 1, 1997, 21 pp.
- DMITRY MIKUSHIN, LIKHOGRUD NIKOLAY, ZHANG EDDY ZHENG, BERGSTRÖM CHRISTOPHER: "KernelGen – the design and implementation of a next generation compiler platform for accelerating numerical models on GPUs", USI TECHNICAL REPORT SERIES IN INFORMATICS, USI-INF-TR-2013-2, UNIVERSITA DELLA SVIZZERA ITALIANA
- International Preliminary Report on Patentability from International Application No. PCT/US2015/021585, dated Jul. 4, 2016, 10 pp.
- International Search Report and Written Opinion from International Application No. PCT/US2015/021585, dated Jun. 5, 2015, 14 pages.
- Margiolas C et al., “HYDA: A HYbrid Dependence Analysis for the adaptive optmisation of OpenCL kernels”, Adaptive Self-Tuning Computing Systems, ACM, 2 Penn Plaza, Suite 701 New York NY 10121-0701 USA, Jan. 22, 2014 (Jan. 22, 2014), pp. 5-7, XP058035360,DOI: 10.1145/2553062.2553069 ISBN: 978-1-4503-