Skip to content

Commit 9d0bc84

Browse files
committed
Add py::gil_scoped_release before mkl_lapack::orgqr() call
1 parent 0d8c0a7 commit 9d0bc84

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dpnp/backend/extensions/lapack/orgqr.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ static sycl::event orgqr_impl(sycl::queue &exec_q,
8787

8888
sycl::event orgqr_event;
8989
try {
90+
// Release GIL to avoid serialization of host task
91+
// submissions to the same queue in OneMKL
92+
py::gil_scoped_release lock{};
93+
9094
scratchpad = sycl::malloc_device<T>(scratchpad_size, exec_q);
9195

9296
orgqr_event = mkl_lapack::orgqr(

0 commit comments

Comments
 (0)