1. 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.