Automatic source code generation for accelerated function calls
Abstract
A programming model for a processor accelerator allows accelerated functions to be called from a main program directly without a management API for the accelerator. A compiler automatically generates wrapper source code for each accelerator function called by the application source code. The wrapper code is compiled, together with the accelerator source code, to generate an object file that is linked to an object file for the main program. By automatically generating the wrapper code, a programmer can simply and directly invoke accelerator functions without the use of a complex management API. In addition, because the wrapper code for the accelerator is generated automatically, a standard compiler can be used to compile the main program, using standard linkage conventions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 20 · Forward citations: 6.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method comprising: receiving, at a computer device, source code indicating a processor accelerator function; automatically generating wrapper code at the computer device to call the processor accelerator function, the wrapper code including at least one of memory allocation instructions, data transfer instructions, variable and data structure declarations to be called and executed by an accelerator; and compiling the wrapper code and the source code to generate an application program.
- Claim 2Depends on #1
The method of claim 1 , wherein compiling the wrapper code and the source code further comprises: compiling the source code to generate machine code; embedding the machine code in the wrapper code; and compiling the wrapper code with the embedded machine code.
- Claim 3Depends on #1
The method of claim 1 , further comprising: gen
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (20)
Non-Patent Literature (5)
- Hao et al, "A Two-Phase Rule Generation and Optimization Approach for Wrapper Generation", ACM, pp. 1-10, 2006.
- Irmak et al, "Interactive Wrapper Generation with Minimal User Effort", ACM, pp. 553-563, 2006.
- Lejdfors et al., "Implementing an Embedded GPU Language by Combining Translation and Generation", SAC'06-ACM Symposium on Applied Computing, Apr. 23, 2006, 5 pages.
- Li et al, "A Wrapper Generator for Wrapping High Performance Legacy Codes as Java/CORBA Components", IEEE, pp. 1-12, 2000.
- McCool et al., "Shader Metaprogramming" (Revised), Proceedings of the ACM SIGGRAPH/Eurographics conference on Graphics hardware. Eurographics Association, Sep. 1, 2002, 12 pages.