Skip to content

Commit a8acc96

Browse files
committed
Fix hanging in tril
1 parent c286b52 commit a8acc96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dpnp/backend/extensions/vm/div.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ bool can_call_div(sycl::queue exec_q,
219219
{
220220
return false;
221221
}
222+
else if (dst_nd == 0)
223+
{
224+
// don't call OneMKL for 0d arrays
225+
return false;
226+
}
222227

223228
// shapes must be the same
224229
const py::ssize_t* src1_shape = src1.get_shape_raw();

0 commit comments

Comments
 (0)