Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL][Driver][thinLTO] Don't pass -emit-only-kernels-as-entry-points to sycl-post-link in early splitting #14991

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

sarnex
Copy link
Contributor

@sarnex sarnex commented Aug 7, 2024

In early splitting with thinLTO, we could be generating an .o to be linked in with other files later. Right now, passing -emit-only-kernels-as-entry-points to sycl-post-link can cause functions to get dropped even though they are used by some other .o.

We will need to prune non-entry points inside the thinLTO processing inside clang-linker-wrapper, but that's not implemented yet.

…-post-link in early splitting

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
@sarnex sarnex marked this pull request as ready for review August 7, 2024 22:13
@sarnex sarnex requested a review from a team as a code owner August 7, 2024 22:13
@sarnex sarnex changed the title [SYCL][thinLTO] Don't pass -emit-only-kernels-as-entry-points to sycl-post-link in early splitting [SYCL][Driver][thinLTO] Don't pass -emit-only-kernels-as-entry-points to sycl-post-link in early splitting Aug 7, 2024
Copy link
Contributor

@mdtoguchi mdtoguchi left a comment

Choose a reason for hiding this comment

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

Fine by me - but this if condition is getting pretty hairy, we should probably consider some kind of function to improve readibility.

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
@sarnex
Copy link
Contributor Author

sarnex commented Aug 7, 2024

@mdtoguchi Thanks, should be done in latest commit!

@AlexeySachkov AlexeySachkov merged commit d893994 into intel:sycl Aug 8, 2024
12 of 13 checks passed
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.

3 participants