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

IntelPython / dpnp / 46085127678
85%

Build:
DEFAULT BRANCH: master
Ran 28 Nov 2026 01:08AM 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

27 Nov 2026 11:55PM UTC coverage: 84.556% (+0.001%) from 84.555%
46085127678

push

github

web-flow
Accept NULL strides in DLPack tensors on oneAPI devices (#3183)

This PR fixes a segfault in `dpnp.tensor.from_dlpack` and
`dpnp.from_dlpack` when importing a DLPack tensor on a oneAPI device
with NULL strides.

To find the extent of the memory a `kDLOneAPI` tensor views,
`from_dlpack_capsule` read `strides[i]` for every dimension without
checking for NULL. DLPack before v1.2 allows `strides` to be NULL to
mean a C-contiguous tensor, and the `kDLCPU` branch already handles
that. The extent is now computed from C-contiguous strides when
`strides` is NULL. The resulting array was already built with
C-contiguous strides in that case.

dpnp's own capsules always set strides, so only tensors from other
producers, through a legacy `DLManagedTensor` or a versioned tensor
older than 1.2, reach this.

The test builds such tensors with the `_dlpack_ctypes` helper added in
#3181, so this PR is stacked on #3181 and targets its branch; it is to
be retargeted to `master` once #3181 is merged. Without the fix, every
case of the new test segfaults, and computing the extent with a stride
of 1 instead of the C-contiguous strides fails the 2-D case. The DLPack
tests in `dpnp/tests/tensor/test_usm_ndarray_dlpack.py` and
`dpnp/tests/test_dlpack.py` pass on a Level Zero iGPU and the OpenCL CPU
device.

1906 of 3156 branches covered (60.39%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

30813 of 35539 relevant lines covered (86.7%)

39385.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 46085127678.1 28 Nov 2026 01:08AM UTC 274
84.56
GitHub Action Run
Source Files on build 46085127678
  • 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 #46085127678
  • 0238cc3f on github
  • Prev Build on master (#46041987018)
  • Next Build on master (#46155265553)
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