Method and apparatus for compiler processing for a function marked with multiple execution spaces
AssigneeNVIDIA Corporation
InventorJaydeep MARATHE
Life of this patent
Estimating the term…
Loading patent…
AssigneeNVIDIA Corporation
InventorJaydeep MARATHE
Estimating the term…
A method for processing a function with a plurality of execution spaces is disclosed. The method comprises creating an internal compiler representation for the function. Creating the internal compiler representation comprises copying substantially all lexical tokens corresponding to a body of the function. Further, the creating comprises inserting the lexical tokens into a plurality of conditional if-statements, wherein a conditional if-statement is generated for each corresponding execution space of said plurality of execution spaces, and wherein each conditional if-statement determines which execution space the function is executing in. During compilation, the method finally comprises performing overload resolution at a call site of an overloaded function by checking for compatibility with a first execution space specified by one of the plurality of conditional if-statements, wherein the overloaded function is called within the body of the function.
A method for processing a function with a plurality of execution spaces comprising:
A non-transitory computer-readable storage medium having stored thereon, computer executable instructions that, if executed by a computer system cause the computer system to perform a compilation method for processing a function with multiple execution spaces comprising:
The computer-readable medium as described in claim 9, wherein said method further comprises:
A system for processing a function with multiple execution spaces, said system comprising:
Dependencies are inferred from the claim text.