Skip to content

Conversation

@dvrogozh
Copy link
Contributor

@dvrogozh dvrogozh commented Sep 22, 2025

Some versions of DPC++ compiler pass paths to SYCL headers as user include paths (-I) rather than system paths (-isystem). This makes host compiler to report warnings encountered in the SYCL headers, such as deprecated warnings, even if warned API is not actually used in the program. We expect that this issue will be addressed in the later version of DPC++ compiler. To workaround the issue we wrap paths to SYCL headers in -isystem.

disable_ut
disable_e2e
disable_distributed

CC: @EikanWang @chuanqi129

Some versions of DPC++ compiler pass paths to SYCL headers as user include paths (`-I`) rather
than system paths (`-isystem`). This makes host compiler to report warnings encountered in the
SYCL headers, such as deprecated warnings, even if warned API is not actually used in the program.
We expect that this issue will be addressed in the later version of DPC++ compiler. To workaround
the issue we wrap paths to SYCL headers in `-isystem`.

disable_ut
disable_e2e
disable_distributed

Signed-off-by: Dmitry Rogozhkin <[email protected]>
@dvrogozh
Copy link
Contributor Author

@EikanWang, this PR is to illustrate discussion in #2086 (comment). This adds a WA to suppress SYCL header warnings on Linux, but leave SYCL warnings for our own code which we might actually wish to look into. Note that I still left suppression for -Wno-sign-compare as there are too many of these coming from our own code. There are few -Wdeprecated we are stepping into and quite few -Wattributes. Please, take a look if we want to proceed with this PR and start fixing these warnings in our code.

Copy link
Contributor

@EikanWang EikanWang left a comment

Choose a reason for hiding this comment

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

Great! LGTM. Meanwhile, let's continue fixing the warning issue.

@chuanqi129 chuanqi129 added this pull request to the merge queue Sep 23, 2025
Merged via the queue into intel:main with commit 65234bd Sep 23, 2025
10 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