Skip to content

[SYCL][libdevice] Add -fsycl-device-lib-online-link option. #6167

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

Merged
merged 6 commits into from
May 26, 2022

Conversation

jinge90
Copy link
Contributor

@jinge90 jinge90 commented May 18, 2022

When this option is used, we use online link for SYCL device libraries,
otherwise, we use offline link, all wrapper and fallback device libraries
are linked with user's device image in compilation time.

Signed-off-by: jinge90 [email protected]

@jinge90 jinge90 requested a review from a team as a code owner May 18, 2022 08:07
@jinge90 jinge90 requested review from pvchupin and mdtoguchi May 18, 2022 08:07
jinge90 added 3 commits May 18, 2022 16:14
When this option is used, we use online link for SYCL device libraries,
otherwise, we use offline link, all wrapper and fallback device libraries
are linked with user's device image in compilation time.

Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
@pvchupin
Copy link
Contributor

@jinge90, can you please add update of https://github.com/intel/llvm/blob/sycl/sycl/doc/UsersManual.md into this patch?

@jinge90 jinge90 requested a review from a team as a code owner May 26, 2022 01:50
@jinge90
Copy link
Contributor Author

jinge90 commented May 26, 2022

@jinge90, can you please add update of https://github.com/intel/llvm/blob/sycl/sycl/doc/UsersManual.md into this patch?

Doc added.

pvchupin
pvchupin previously approved these changes May 26, 2022
Co-authored-by: Pavel Chupin <[email protected]>
@jinge90
Copy link
Contributor Author

jinge90 commented May 26, 2022

Hi, @mdtoguchi
Could you help review this patch?

Thanks very much.

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.

LGTM, thanks!

@pvchupin pvchupin merged commit dfb37a8 into intel:sycl May 26, 2022
pvchupin pushed a commit that referenced this pull request Jun 2, 2022
Currently, sycl-post-link tool will analyze user's device image and record which device libraries are actually required by user, sycl runtime will read the info and load the required fallback spv file. However, old compiler would always mark "cassert" fallback spv as required, this was to bypass a FE issue. So, if anyone uses old compiler + new SYCL runtime with online link enabled, unnecessary cassert fallback spv loading will be observed. This PR will ignore "cassert" fallback spv in sycl runtime, ignoring it is OK for now since "cassert" fallback has not been fully implemented.

This PR depends on #6167

Signed-off-by: jinge90 <[email protected]>
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