×

Method and apparatus for unifying graphics processing unit computation languages

  • US 9,275,426 B2
  • Filed: 06/04/2012
  • Issued: 03/01/2016
  • Est. Priority Date: 06/04/2012
  • Status: Active Grant
First Claim
Patent Images

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, andwherein 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.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×