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

IntelPython / dpnp / 46488233583
85%

Build:
DEFAULT BRANCH: master
Ran 30 Nov 2026 08:22PM 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

30 Nov 2026 06:47PM UTC coverage: 84.557% (-0.002%) from 84.559%
46488233583

push

github

web-flow
Fix copying fp64 host arrays to a device without fp64 in `from_dlpack` (#3209)

This PR fixes wrong values from `dpnp.from_dlpack` and
`dpnp.tensor.from_dlpack` when copying a `float64` or `complex128` host
array to a SYCL device without fp64 support.

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`. On a device without fp64, that
helper makes the result `float32` or `complex64`, but it copied the
bytes of the `float64` or `complex128` host array into it unchanged,
with no error. For example, `[1.5, -2.25, 3.0]` came out as `[0, 1.9375,
0]`. The host array is now cast to the result's data type before the
copy, as `dpnp.tensor.asarray` does for host arrays.

`test_copy_via_host_fp64` copies `float64` and `complex128` host arrays
to the device. It expects the same data type on a device with fp64 and
`float32` or `complex64` on one without, and compares the values in both
cases. The CI devices all support fp64, so there it only checks the fp64
case.

- [x] Have you provided a meaningful PR description?
- [x] Have you added a test, reproducer or referred to an issue with a
reproducer?
- [x] Have you tested your changes locally for CPU and GPU devices?
- [x] Have you made sure that new changes do not introduce compiler
warnings?
- [ ] Have you checked performance impact of proposed changes?
- [ ] Have you added documentation for your changes, if necessary?
- [x] Have you added your changes to the changelog?

1906 of 3156 branches covered (60.39%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

30815 of 35541 relevant lines covered (86.7%)

39385.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
87.46
-0.16% dpnp/tensor/_dlpack.pyx
Jobs
ID Job ID Ran Files Coverage
1 46488233583.1 30 Nov 2026 08:22PM UTC 274
84.56
GitHub Action Run
Source Files on build 46488233583
  • 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 #46488233583
  • 1c7974c9 on github
  • Prev Build on master (#46469832074)
  • Next Build on master (#46642224238)
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