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

IntelPython / dpnp / 33499401606
78%

Build:
DEFAULT BRANCH: master
Ran 01 Sep 2026 12:27PM UTC
Jobs 1
Files 263
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 Sep 2026 10:49AM UTC coverage: 78.489% (-0.01%) from 78.501%
33499401606

push

github

web-flow
Fix sycl::queue leak in usm_ndarray `get_queue()`/`get_device()` (#3042)

This PR fixes a memory leak in the C++ accessors
`usm_ndarray::get_queue()` and `get_device()` in
`dpnp/include/dpnp4pybind11.hpp`

`UsmNDArray_GetQueueRef_` (dpnp's `usm_ndarray.get_queue_ref()`) returns
an owning copy of the queue (it calls `DPCTLQueue_Copy` i.e. new
`sycl::queue`)
Both accessors dereferenced this pointer and copied the queue out but
never freed the heap copy, leaking one `sycl::queue` per call. Under
queue churn this keeps `queue_impl` alive and prevents reuse of the
associated Level Zero command lists / event pools.

The fix adds `UsmNDArray_RemoveQueueRef` C-API to `dpnp_capi` (it binds
`DPCTLQueue_Delete`); `get_queue()/get_device()` take ownership of the
returned copy with `std::unique_ptr<sycl::queue>` whose custom deleter
frees it via `UsmNDArray_RemoveQueueRef`. This keeps allocation and
deallocation on dpctl's side of the ABI.

dpctl needs no change because its `Memory_GetQueueRef` returns a
borrowed ref, whereas dpnp's `UsmNDArray_GetQueueRef` is documented to
return a copy so it must be deleted.

1546 of 2898 branches covered (53.35%)

Branch coverage included in aggregate %.

13 of 22 new or added lines in 2 files covered. (59.09%)

1 existing line in 1 file now uncovered.

26627 of 32996 relevant lines covered (80.7%)

8641.27 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
77.55
-0.86% dpnp/include/dpnp4pybind11.hpp

Coverage Regressions

Lines Coverage ∆ File
1
77.55
-0.86% dpnp/include/dpnp4pybind11.hpp
Jobs
ID Job ID Ran Files Coverage
1 33499401606.1 01 Sep 2026 12:27PM UTC 263
78.49
GitHub Action Run
Source Files on build 33499401606
  • Tree
  • List 263
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33499401606
  • e97aa791 on github
  • Prev Build on master (#33486717872)
  • Next Build on master (#33511132933)
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