Skip to content

Commit 4223c72

Browse files
Pass trans_code to getrs in dpnp_solve()
1 parent 25b7466 commit 4223c72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dpnp/linalg/dpnp_utils_linalg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2875,6 +2875,12 @@ def dpnp_solve(a, b):
28752875
_manager = dpu.SequentialOrderManager[exec_q]
28762876
dep_evs = _manager.submitted_events
28772877

2878+
# TODO: remove after PR #2558 is merged
2879+
# Temporarily set trans_code=1 (transpose) because the LU-factorized
2880+
# array is C-contiguous.
2881+
# For F-contiguous arrays use 0 (non-transpose)
2882+
trans_code = 1
2883+
28782884
# use DPCTL tensor function to fill the сopy of the input array
28792885
# from the input array
28802886
ht_ev, a_copy_ev = ti._copy_usm_ndarray_into_usm_ndarray(

0 commit comments

Comments
 (0)