发明名称 |
SYSTEM AND METHOD FOR COMPILER SUPPORT FOR COMPILE TIME CUSTOMIZATION OF CODE |
摘要 |
A system and method for processing source code for compilation. The method includes accessing a portion of host source code and determining whether the portion of the host source code comprises a device lambda expression. The method further includes in response to the portion of host code comprising the device lambda expression, determining a unique placeholder type instantiation based on the device lambda expression and modifying the device lambda expression based on the unique placeholder type instantiation to produce modified host source code. The method further includes sending the modified host source code to a host compiler. |
申请公布号 |
US2016188352(A1) |
申请公布日期 |
2016.06.30 |
申请号 |
US201514968740 |
申请日期 |
2015.12.14 |
申请人 |
Nvidia Corporation |
发明人 |
MARATHE Jaydeep;GROVER Vinod |
分类号 |
G06F9/455;G06F9/44;G06F9/45 |
主分类号 |
G06F9/455 |
代理机构 |
|
代理人 |
|
主权项 |
1. A method of processing source code, the method comprising:
accessing a portion of host source code; determining whether the portion of the host source code comprises a device lambda expression; in response to the portion of host code comprising the device lambda expression, determining a unique placeholder type instantiation based on the device lambda expression; modifying the device lambda expression based on the unique placeholder type instantiation to produce modified host source code; and making the modified host source code available to a host compiler. |
地址 |
Santa Clara CA US |