Skip to content

Conversation

@jopperm
Copy link
Contributor

@jopperm jopperm commented Oct 22, 2024

Mimics clang::driver::tools::SYCL::getDeviceLibraries assuming a SPIR-V target (= no AoT, no third-party GPUs, no native CPU).

Same as for the compilation step, warning/error reporting is still rudimentary and will be improved in a future PR.

@jopperm jopperm self-assigned this Oct 22, 2024
`llvm::Module` must remain qualified to resolve the ambiguity with `clang::Module`.

Signed-off-by: Julian Oppermann <[email protected]>
@jopperm jopperm force-pushed the rtc-via-sycl-jit-device-linking branch from 8096e3e to 970b041 Compare October 28, 2024 13:55
Comment on lines -109 to -158
// TODO: Allow instrumentation again when device library linking is
// implemented.
CommandLine.push_back("-fno-sycl-instrument-device-code");
Copy link
Contributor Author

@jopperm jopperm Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: This PR is tested by the existing E2E test, which now works with device instrumentation enabled.

Copy link
Contributor Author

@jopperm jopperm Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Device instrumentation was disabled by default recently (#14910); I added the flag to one of the E2E test's user-supplied arguments.

@jopperm jopperm marked this pull request as ready for review October 28, 2024 14:11
@jopperm jopperm requested a review from a team as a code owner October 28, 2024 14:11
@jopperm jopperm marked this pull request as draft October 31, 2024 13:31
@jopperm
Copy link
Contributor Author

jopperm commented Oct 31, 2024

Reverted to draft while working on better handling of user arguments.

Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
@jopperm jopperm marked this pull request as ready for review November 1, 2024 12:54
@jopperm jopperm requested a review from a team as a code owner November 1, 2024 12:54
Signed-off-by: Julian Oppermann <[email protected]>
@jopperm jopperm changed the title [SYCL] Implement linking of default device libraries for runtime compilation [SYCL] Implement device library linking for runtime compilation Nov 5, 2024
@jopperm
Copy link
Contributor Author

jopperm commented Nov 14, 2024

@cperkinsintel @gmlueck @AlexeySachkov could you take a look, please?

@gmlueck
Copy link
Contributor

gmlueck commented Nov 14, 2024

@cperkinsintel @gmlueck @AlexeySachkov could you take a look, please?

Sorry, I can't commit to reviewing every PR for the jit compiler. I generally review changes to specifications, and I'm available to answer questions.

@sommerlukas sommerlukas merged commit 19ea12b into intel:sycl Nov 15, 2024
13 checks passed
@jopperm jopperm deleted the rtc-via-sycl-jit-device-linking branch November 15, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants