Patent ID: 9275426
Filing Date: 2016-03-01
CPC Classification: G06T

Claim Text:
1. A method for unifying Graphics Processing Unit (GPU) computation languages comprising: initiating, by at least one processor, execution of an application on a computing device; in response to initiating execution of the application, running a utility program to identify a computation language associated with a GPU on the computing device, wherein the GPU is associated with a first GPU computation language or a second GPU computation language; wherein the first GPU computation language includes source code which is not present in the second GPU computation language, and wherein the second GPU computation language includes source code that is not present in the first GPU computation language; accessing a plurality of macros, wherein each macro of the plurality of macros comprises source code in the first GPU computation language and source code in the second GPU computation language; expanding each macro in the plurality of macros based on the identified computation language associated with the GPU; compiling, based on the expanded plurality of macros, a kernel using source code in the identified computation language associated with the GPU; and executing the kernel on the computing device.