Skip to content

[SYCL] Propagate sycl_fixed_targets metadata #7115

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 11 commits into from
Oct 31, 2022

Conversation

KornevNikita
Copy link
Contributor

As part of optional kernel features implementation we need to implement new compiler switch option "-fsycl-fixed-targets=target,target..." to diagnose optional feature usage and mark SYCL kernel functions with a "!sycl_fixed_targets !N" metadata, where "!N" is a list of targets as aspects enum members.
This patch applies changes for SYCLPropagateAspectsUsage pass and prepare it to accept new switch from Clang.

As part of optional kernel features implementation we need to implement
new compiler switch option "-fsycl-fixed-targets=target,target..." to diagnose
optional feature usage and mark SYCL kernel functions with a
"!sycl_fixed_targets !N" metadata, where "!N" is list of targets as aspects enum
members.
This patch applies changes for SYCLPropagateAspectsUsage pass and
prepare it to accept new switch from Clang.
@KornevNikita KornevNikita requested review from a team as code owners October 19, 2022 13:17
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

LGTM!

@KornevNikita
Copy link
Contributor Author

@AlexeySachkov @intel/dpcpp-esimd-reviewers take a look, please

@AlexeySachkov AlexeySachkov requested a review from a team October 25, 2022 12:10
@AlexeySachkov AlexeySachkov requested a review from a team October 25, 2022 12:24
@AlexeySachkov AlexeySachkov dismissed their stale review October 25, 2022 12:24

My earlier comments were applied

Co-authored-by: Alexey Sachkov <alexey.sachkov@intel.com>
@steffenlarsen steffenlarsen merged commit 81882ed into intel:sycl Oct 31, 2022
@KornevNikita KornevNikita deleted the propagate-fixed-target branch December 9, 2022 14:46
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