From a8acc96be49f1235714e93d50600076af9eb672d Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Fri, 9 Jun 2023 09:15:40 -0500 Subject: [PATCH] Fix hanging in tril --- dpnp/backend/extensions/vm/div.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dpnp/backend/extensions/vm/div.cpp b/dpnp/backend/extensions/vm/div.cpp index 48b64959b88..6e98e09f347 100644 --- a/dpnp/backend/extensions/vm/div.cpp +++ b/dpnp/backend/extensions/vm/div.cpp @@ -219,6 +219,11 @@ bool can_call_div(sycl::queue exec_q, { return false; } + else if (dst_nd == 0) + { + // don't call OneMKL for 0d arrays + return false; + } // shapes must be the same const py::ssize_t* src1_shape = src1.get_shape_raw();