Skip to content

[SYCL] Disable clang pedantic diagnostics in header/footer #15171

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 7 commits into from
Aug 23, 2024

Conversation

premanandrao
Copy link
Contributor

@premanandrao premanandrao commented Aug 22, 2024

When -Wreserved-identifer or -Wold-style-cast is enabled, some of the constructs used in
integration headers and footers for device_globals and host_pipes trigger a diagnostic.
This change adds a pragma to the generated files that suppress the diagnostic prior to
the construct and reenabled the diagnostic after.

@premanandrao premanandrao changed the title Remote diag pragma [SYCL] Disable clang pedantic diagnostics in header/footer Aug 22, 2024
Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

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

LGTM.

@premanandrao
Copy link
Contributor Author

@intel/llvm-gatekeepers, this is ready for merge. The test failures seem unrelated to my changes.

@aelovikov-intel
Copy link
Contributor

@intel/llvm-gatekeepers, this is ready for merge. The test failures seem unrelated to my changes.

This looks weird and I'm not aware of any issues with gen12 runners. I'm re-running the failed job.

@premanandrao
Copy link
Contributor Author

@intel/llvm-gatekeepers, this is ready for merge. The test failures seem unrelated to my changes.

This looks weird and I'm not aware of any issues with gen12 runners. I'm re-running the failed job.

Thanks! Looks finished?

@aelovikov-intel aelovikov-intel merged commit 4140240 into intel:sycl Aug 23, 2024
13 checks passed
AlexeySachkov pushed a commit to AlexeySachkov/llvm that referenced this pull request Nov 26, 2024
When -Wreserved-identifer or -Wold-style-cast is enabled, some of the
constructs used in
integration headers and footers for device_globals and host_pipes
trigger a diagnostic.
This change adds a pragma to the generated files that suppress the
diagnostic prior to
the construct and reenabled the diagnostic after.
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.

5 participants