Skip to content

[SYCL] How to link a pre-compiled device image? #5649

@shixiyue

Description

@shixiyue

I read the documentation about Dynamic linking of device code, which describe a scenario of using functions defined in a pre-compiled device image provided by the user.

May I know what are the compiler commands for this scenario? The documentation says that

user adds device image with definition of LibDeviceFunc to the fat object via special compiler option (like -fsycl-add-targets

But I don't understand how to do that in practice. Could you provide an example for the compilation command? Also, what if the pre-compiled device image is for an architecture different from the host's? Does the dynamic linking of device code still work in the case? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions