Skip to content

Commit

Permalink
Resolve possible race condition in dpnp.inv() implemenetation (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonwolfy authored Jul 22, 2024
1 parent 4ad786f commit 08928bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dpnp/linalg/dpnp_utils_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,10 @@ def dpnp_inv(a):
usm_a_f = a_f.T.get_array()
usm_b_f = b_f.T.get_array()

ht_ev, gesv_ev = li._gesv(a_sycl_queue, usm_a_f, usm_b_f, depends=[copy_ev])
# depends on copy_ev and an event from dpt.eye() call
ht_ev, gesv_ev = li._gesv(
a_sycl_queue, usm_a_f, usm_b_f, depends=_manager.submitted_events
)
_manager.add_event_pair(ht_ev, gesv_ev)

return b_f
Expand Down

0 comments on commit 08928bf

Please sign in to comment.