Skip to content

Suppress the compiler warnings marking them as external#2770

Merged
antonwolfy merged 4 commits intomasterfrom
suppress-compiler-warnings
Feb 17, 2026
Merged

Suppress the compiler warnings marking them as external#2770
antonwolfy merged 4 commits intomasterfrom
suppress-compiler-warnings

Conversation

@antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Feb 16, 2026

On Linux, the DPC++ compiler headers are automatically treated as system headers. But it is not the case on Windows.
Due to that, there is a ton of deprecation warnings generated inside the compiler headers when building dpnp extensions on Windows.

This PR updates CMake files of the extensions to add include of DPC++ compiler headers explicitly and to mark the compiler and dpctl headers as system one to suppress the warning inside them.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

@antonwolfy antonwolfy added this to the 0.20.0 release milestone Feb 16, 2026
@antonwolfy antonwolfy self-assigned this Feb 16, 2026
@antonwolfy antonwolfy force-pushed the suppress-compiler-warnings branch from 97f2404 to 2e328bf Compare February 16, 2026 19:50
@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2026

View rendered docs @ https://intelpython.github.io/dpnp/index.html

@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2026

Array API standard conformance tests for dpnp=0.20.0dev3=py313h509198e_7 ran successfully.
Passed: 1354
Failed: 3
Skipped: 7

@coveralls
Copy link
Collaborator

coveralls commented Feb 16, 2026

Coverage Status

coverage: 81.124%. remained the same
when pulling 98f56fa on suppress-compiler-warnings
into c73e472 on master.

@antonwolfy antonwolfy force-pushed the suppress-compiler-warnings branch 2 times, most recently from 80060c0 to 7b219fc Compare February 16, 2026 22:20
@antonwolfy antonwolfy force-pushed the suppress-compiler-warnings branch from cd4fb3d to f016807 Compare February 17, 2026 10:23
@antonwolfy antonwolfy marked this pull request as ready for review February 17, 2026 12:52
Copy link
Contributor

@vlad-perevezentsev vlad-perevezentsev left a comment

Choose a reason for hiding this comment

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

LGTM
Thank you @antonwolfy !

@antonwolfy antonwolfy merged commit 30f5fd1 into master Feb 17, 2026
118 of 120 checks passed
@antonwolfy antonwolfy deleted the suppress-compiler-warnings branch February 17, 2026 17:31
github-actions bot added a commit that referenced this pull request Feb 17, 2026
On Linux, the DPC++ compiler headers are automatically treated as system
headers. But it is not the case on Windows.
Due to that, there is a ton of deprecation warnings generated inside the
compiler headers when building dpnp extensions on Windows.

This PR updates CMake files of the extensions to add include of DPC++
compiler headers explicitly and to mark the compiler and dpctl headers
as system one to suppress the warning inside them. 30f5fd1
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