Unified intermediate representation
Abstract
A system decouples the source code language from the eventual execution environment by compiling the source code language into a unified intermediate representation that conforms to a language model allowing both parallel graphical operations and parallel general-purpose computational operations. The intermediate representation may then be distributed to end-user computers, where an embedded compiler can compile the intermediate representation into an executable binary targeted for the CPUs and GPUs available in that end-user device. The intermediate representation is sufficient to define both graphics and non-graphics compute kernels and shaders. At install-time or later, the intermediate representation file may be compiled for the specific target hardware of the given end-user computing system. The CPU or other host device in the given computing system may compile the intermediate representation file to generate an instruction set architecture binary for the hardware target, such as a GPU, within the system.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 37 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A non-transitory machine-readable medium, on which are stored instructions, comprising instructions that when executed cause a machine to: receive a pre-compiled library, wherein the pre-compiled library has been compiled from source code into an intermediate representation prior to being received, and wherein the pre-compiled library comprises parallel graphics operations and parallel non-graphics operations; compile the pre-compiled library from an intermediate representation file into a binary file comprising one or more kernels and one or more shaders, wherein both the one or more kernels
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (37)
Non-Patent Literature (5)
- "Metal Programming Guide Contents", APPLE, pages 1 - 74, XP055207633, Retrieved from the Internet <URL:https://developer.apple.com/library/ios/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/MetalProgrammingGuide.pdf> [retrieved on 20150813]
- "Metal Programming Guide Contents," Mar. 9, 2015 (Mar. 9, 2015), pp. 1-74, XP055207633, Retrieved from the Internet: URL: https://developer.apple.com/library/ios/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/MetalProgrammingGuide.pdf [retrieved on Aug. 13, 2015].
- Chris Lattner, "LLVM & LLVM Bitcode Introduction," Jan. 1, 2013 (Jan. 1, 2013), XP055206788, Retrieved from the Internet: URL: http://pllab.cs.nthu.edu.tw/cs240402/lectures/lectures-2013/LLVM Bitcode Introduction.pdf [retrived on Aug. 7, 2015].
- CHRIS LATTNER: "LLVM & LLVM Bitcode Introduction", 1 January 2013 (2013-01-01), XP055206788, Retrieved from the Internet <URL:http://pllab.cs.nthu.edu.tw/cs340402/lectures/lectures_2013/LLVM Bitcode Introduction.pdf> [retrieved on 20150807]
- Helge Rhodin, "A PTX Code Generator for LLVM," Oct. 29, 2010 (Oct. 29, 2010), pp. 1-63, XP055208570, Saarbrucken, Germany, Retrieved from the Internet: URL: http://compilers.cs.uni-saarland.de/publications/theses/rhodin-bsc.pdf [retrieved on Aug. 19, 2015].