Skip to content

Commit d5129a4

Browse files
Release GIL for gesvd_batch_impl
1 parent 9fd03f1 commit d5129a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpnp/backend/extensions/lapack/gesvd_batch.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ static sycl::event gesvd_batch_impl(sycl::queue &exec_q,
121121
std::stringstream error_msg;
122122
bool is_exception_caught = false;
123123

124+
// Release GIL to avoid serialization of host task
125+
// submissions to the same queue in OneMKL
126+
py::gil_scoped_release release;
127+
124128
for (std::int64_t batch_id = 0; batch_id < batch_size; ++batch_id) {
125129

126130
T *a_batch = a + batch_id * a_size;

0 commit comments

Comments
 (0)