• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IntelPython / dpnp / 46177156997
85%

Build:
DEFAULT BRANCH: master
Ran 28 Nov 2026 07:46PM UTC
Jobs 1
Files 274
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Nov 2026 06:40PM UTC coverage: 84.556%. Remained the same
46177156997

push

github

web-flow
Build dpnp as C++20 (#3190)

This PR moves the dpnp build from C++17 to C++20. DPC++ 2026.0, the
minimum supported compiler, compiles SYCL kernels in C++20 mode.

- `CMakeLists.txt` and
`examples/pybind11/use_dpnp_array/CMakeLists.txt`: `CMAKE_CXX_STANDARD`
is now 20. With CMake's default extensions, icpx gets `-std=gnu++20`
instead of `-std=gnu++17`.
- `.clang-format`: `Standard: c++20`. pre-commit reformats nothing.
- `dpnp/backend/src/dpnp_fptr.hpp`: the `dpnp_remove_cvref_t` helper,
which existed only because `std::remove_cvref_t` needs C++20, is
replaced by `std::remove_cvref_t`.
- `dpnp/libtensor/AGENTS.md`: the C++ standard rule now says C++20.
- `dpnp/include/dpnp4pybind11.hpp`: an `#error` guard fails the build
below C++20 (checks `_MSVC_LANG` in MSVC mode, where `__cplusplus` stays
`199711L`).
- `doc/quick_start_guide.rst`: states that extensions using the shipped
headers must be compiled as C++20 or later.

This is a breaking change for C++ extensions built against dpnp: the
headers shipped with dpnp (`dpnp/include` and `dpnp/libtensor/include`)
may now use C++20, so such extensions must build as C++20. The headers
use no C++20 features yet, but `dpnp4pybind11.hpp` now stops a C++17
build with an `#error`, and CI no longer compiles the libtensor headers
as C++17. The changelog entry and the quick start guide state the
requirement.

Measured with icpx 2026.2 on Linux (12 CPUs, Ubuntu 26.04), Release
build, two clean builds of each with `scripts/build_locally.py`:

| | C++17 (master) | C++20 |
| --- | --- | --- |
| Build time, run 1 | 888 s | 926 s |
| Build time, run 2 | 891 s | 921 s |
| Peak RSS of a single process | 3.56 GB | 3.56 GB |
| Compiler warnings | 0 | 0 |
| Total size of the 24 `.so` files | 194,067,928 B | 194,289,104 B (+221
KB, +0.11%) |

Build time grows by about 34 s (+3.8%). Each pybind11 extension in
`dpnp/libtensor` grows by 12 to 20 KB, `libdpnp_backend_c.so` by 4 KB,
and the Cython modules are unchanged or differ by at... (continued)

1906 of 3156 branches covered (60.39%)

Branch coverage included in aggregate %.

30813 of 35539 relevant lines covered (86.7%)

39407.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 46177156997.1 28 Nov 2026 07:46PM UTC 274
84.56
GitHub Action Run
Source Files on build 46177156997
  • Tree
  • List 274
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46177156997
  • b801f544 on github
  • Prev Build on master (#46155265553)
  • Next Build on master (#46186942582)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc