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

IntelPython / dpnp / 47164853352
85%

Build:
DEFAULT BRANCH: master
Ran 03 Dec 2026 07:00PM 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

03 Dec 2026 05:39PM UTC coverage: 84.609% (+0.03%) from 84.578%
47164853352

push

github

web-flow
Add `solve_triangular` to `dpnp.scipy.linalg` (#3200)

Add SciPy-compatible `dpnp.scipy.linalg.solve_triangular`, including
batched input as in SciPy 1.18 (#3096).

### Implementation

- One compute path: the existing BLAS `trsm_batch` binding, which gets a
`unit_diag` argument (default `False`, so `cho_solve` is unchanged). A
2-D system is solved as a batch of one: on the GPUs and CPUs tested, a
2-D `trsm` and `trsm_batch` with a batch of one take the same time, so
no 2-D binding is added.
- Why not LAPACK `trtrs`: with oneMKL 2026.2 (USM API), `trtrs` doesn't
raise for a zero on the diagonal, neither on the GPU nor on the CPU, and
unlike LAPACK's `trtrs` its documentation doesn't list that case
(reported to the oneMKL team). For n ≤ 32 (and on the CPU at any n) it
leaves `b` unchanged and stores `info` only in the scratchpad. On the
GPU for n > 32 it doesn't detect the zero, and `b` becomes inf/NaN. It
also blocks the host for n ≤ 32 on both devices, and for larger n it
does the same work as `trsm`. So dpnp checks the diagonal itself.
- Checks: with `check_finite=True`, `isfinite(a).all()`,
`isfinite(b).all()` and `all(diagonal(a))` are all submitted before the
first read, so a call waits once. The singular check runs unless
`unit_diagonal=True`, whatever `check_finite` is, as in `lu_factor`,
`cho_factor` and `dpnp.linalg.solve`. A zero raises
`LinAlgError("singular matrix: resolution failed at diagonal i")` with
SciPy's index (the first singular matrix of a batch). All checks run
before the solve, so `b` is never modified when an error is raised.
- Layout: oneMKL is column-major. An F-contiguous `a` is used as is.
Otherwise its C-contiguous version (the input itself when it is
C-contiguous) is passed transposed, with `lower` flipped and trans N and
T swapped. Trans C on a transposed complex `a` solves for conj(b) and
conjugates the solution back. `trsm` reads one triangle only, so the
other one is never copied or zeroed.
- Batches broadcast as in `... (continued)

1909 of 3158 branches covered (60.45%)

Branch coverage included in aggregate %.

116 of 116 new or added lines in 5 files covered. (100.0%)

30937 of 35663 relevant lines covered (86.75%)

40329.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 47164853352.1 03 Dec 2026 07:00PM UTC 275
84.61
GitHub Action Run
Source Files on build 47164853352
  • Tree
  • List 275
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #47164853352
  • 270dd54f on github
  • Prev Build on master (#47145675244)
  • Next Build on master (#47185094362)
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