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] Choose image with inlined default values if default value is set explicitly #12626

Merged
merged 9 commits into from
Feb 9, 2024

Conversation

againull
Copy link
Contributor

@againull againull commented Feb 6, 2024

If -fsycl-add-default-spec-consts-image option is used then DPCPP generates a device image where default values of specialization constants are inlined (in addition to regular device image).

Currently we always choose regular device image if somebody calls set_specialization_constant API.
This PR improves this behavior: if set_specialization_constant sets the value equal to default value then we can choose the device image where default values of specialization constants are inlined.

Make it usable to return default value as well, not only value that was
set.
Copy link
Contributor

github-actions bot commented Feb 8, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Contributor

@maksimsab maksimsab left a comment

Choose a reason for hiding this comment

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

LGTM

@againull againull merged commit 73d3473 into intel:sycl Feb 9, 2024
12 checks passed
@againull againull deleted the spec_consts_default_value branch April 9, 2024 19:57
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