Method and system for separate compilation of device code embedded in host code
    6.
    发明授权
    Method and system for separate compilation of device code embedded in host code 有权
    用于单独编译嵌入在主机代码中的设备代码的方法和系统

    公开(公告)号:US09483235B2

    公开(公告)日:2016-11-01

    申请号:US13850207

    申请日:2013-03-25

    CPC classification number: G06F8/30 G06F8/41 G06F8/54

    Abstract: Embodiments of the present invention provide a novel solution that supports the separate compilation of host code and device code used within a heterogeneous programming environment. Embodiments of the present invention are operable to link device code embedded within multiple host object files using a separate device linking operation. Embodiments of the present invention may extract device code from their respective host object files and then linked them together to form linked device code. This linked device code may then be embedded back into a host object generated by embodiments of the present invention which may then be passed to a host linker to form a host executable file. As such, device code may be split into multiple files and then linked together to form a final executable file by embodiments of the present invention.

    Abstract translation: 本发明的实施例提供了一种新颖的解决方案,其支持在异构编程环境中使用的主机代码和设备代码的单独编译。 本发明的实施例可操作以使用单独的设备链接操作链接嵌入在多个主机对象文件内的设备代码。 本发明的实施例可以从其各自的主机对象文件中提取设备代码,然后将它们链接在一起以形成链接的设备代码。 然后将该链接的设备代码嵌入到由本发明的实施例生成的主机对象中,然后可以将其传递到主机链接器以形成主机可执行文件。 因此,设备代码可以被分割成多个文件,然后通过本发明的实施例链接在一起以形成最终的可执行文件。

    SYSTEM AND METHOD FOR COMPILER SUPPORT FOR COMPILE TIME CUSTOMIZATION OF CODE

    公开(公告)号:US20190196797A1

    公开(公告)日:2019-06-27

    申请号:US16287392

    申请日:2019-02-27

    CPC classification number: G06F8/41 G06F8/51

    Abstract: 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.

Patent Agency Ranking