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

IntelPython / dpnp / 47412344940
85%

Build:
DEFAULT BRANCH: master
Ran 04 Dec 2026 09:12PM UTC
Jobs 1
Files 275
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

04 Dec 2026 07:49PM UTC coverage: 84.61% (+0.001%) from 84.609%
47412344940

push

github

web-flow
Fix copying empty host arrays to a device in `from_dlpack` (#3208)

This PR fixes a `ValueError` in `dpnp.from_dlpack` and
`dpnp.tensor.from_dlpack` when copying an empty host array to a SYCL
device.

When the producer cannot export to the requested oneAPI device, as NumPy
cannot, `from_dlpack` imports the array on the host and copies it to the
device with `_to_usm_ary_from_host_blob`. For an empty array, that
helper asked `MemoryUSMDevice` for 0 bytes, which raises `ValueError:
Number of bytes of request allocation must be positive.`, and
`copy_from_host` rejects an empty buffer as well. The helper now returns
an empty `usm_ndarray` allocated on the target queue, as
`dpnp.tensor.empty` does, and copies nothing.

`test_copy_via_host_size_0` copies empty host arrays of shapes `(0,)`,
`(0, 3)` and `(3, 0)` to the device and checks the shape, data type, USM
type and device of the result. Without the fix, all three cases fail
with the `ValueError`.

1909 of 3158 branches covered (60.45%)

Branch coverage included in aggregate %.

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

30941 of 35667 relevant lines covered (86.75%)

40333.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 47412344940.1 04 Dec 2026 09:12PM UTC 275
84.61
GitHub Action Run
Source Files on build 47412344940
  • Tree
  • List 275
  • 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 #47412344940
  • bfad54b1 on github
  • Prev Build on master (#47322813236)
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