Skip to content

Commit 6766f10

Browse files
committed
Make pybind11 modules GIL-free
1 parent 4a19aa2 commit 6766f10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dpctl/utils/src/device_queries.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ std::uint32_t py_intel_memory_bus_width(const sycl::device &d)
132132

133133
}; // namespace
134134

135-
PYBIND11_MODULE(_device_queries, m)
135+
PYBIND11_MODULE(_device_queries, m, py::mod_gil_not_used())
136136
{
137137
m.def("intel_device_info_device_id", &py_intel_device_id,
138138
"Get ext_intel_device_id for the device, zero if not an intel device",

dpctl/utils/src/order_keeper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "sequential_order_keeper.hpp"
77
#include <sycl/sycl.hpp>
88

9-
PYBIND11_MODULE(_seq_order_keeper, m)
9+
PYBIND11_MODULE(_seq_order_keeper, m, py::mod_gil_not_used())
1010
{
1111
py::class_<SequentialOrder>(m, "_OrderManager")
1212
.def(py::init<std::size_t>())

0 commit comments

Comments
 (0)