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

IntelPython / dpnp / 46642224238
85%

Build:
DEFAULT BRANCH: master
Ran 01 Dec 2026 01:27PM 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

01 Dec 2026 12:02PM UTC coverage: 84.557%. Remained the same
46642224238

push

github

web-flow
Instrument only host code in the coverage build (#3193)

This PR fixes a random segfault of the OpenCL CPU runtime in the
coverage build, which fails the coverage job of PRs, such as #3157 in
`test_sumprod.py`, and makes it rely on the retry elsewhere. The crash
is always at `libintelocl.so+0x2d5f026`: a TBB worker in `NDRange::Init`
calls `clDevCmdStatusChanged` on a freed command.

In a coverage build, `-fprofile-instr-generate -fcoverage-mapping` also
instrument device code, and the device compiler puts every `__profc_`
counter of a module into each of its kernel images, where SYCL treats
them as device globals. This happens for the dpnp sources compiled into
the libtensor modules (`choose.cpp` and `putmask.cpp` give each
`_tensor_impl` image about 800 counters), and for every target that
keeps the global flags: the pybind11 extensions, `dpnp_backend_c` and
the Cython modules. With them, a few `dpnp.tensor.concat` calls on
`opencl:cpu` segfault in about half the runs; `concat` copies with
`_copy_usm_ndarray_into_usm_ndarray` of `_tensor_impl`.

The device counts are lost in dpnp anyway: libsycl, loaded by dpctl
before any instrumented module, never binds
`__sycl_increment_profile_counters`, through which the profile runtime
would add them. So this PR instruments the host side only
(`-Xarch_host`), as the static libtensor sources already are: in the
global `PROFILE_FLAGS`, for all dpnp sources of the libtensor modules
and under `DPNP_TENSOR_GENERATE_COVERAGE_FOR_PYBIND11_EXTENSIONS`. The
radix select sources, which #3138 made host only on their own, are
covered by that too, so their separate list is gone.
`tensor_build_flags.cmake` now strips `PROFILE_FLAGS` as a whole.
Release builds are unchanged.

Checked on a local coverage build of master, on `opencl:cpu` (Core Ultra
7 265U):
- The reproducer (10 runs of the `concat` calls) crashes 0 times with
the change and 5 times without it;
`third_party/cupy/math_tests/test_sumprod.py` passes 4 runs out of... (continued)

1906 of 3156 branches covered (60.39%)

Branch coverage included in aggregate %.

30815 of 35541 relevant lines covered (86.7%)

39406.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 46642224238.1 01 Dec 2026 01:27PM UTC 274
84.56
GitHub Action Run
Source Files on build 46642224238
  • Tree
  • List 274
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46642224238
  • 4be83d01 on github
  • Prev Build on master (#46488233583)
  • Next Build on master (#46880465655)
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