Skip to content

Commit 9f4ede0

Browse files
committed
add py_mod_gil_not_used to pybind11 doc example
1 parent 0373757 commit 9f4ede0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/doc_sources/api_reference/dpctl_pybind11.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pybind11 API
1919
return dev.get_info<sycl::info::device::name>();
2020
}
2121

22-
PYBIND11_MODULE(_example, m) {
22+
PYBIND11_MODULE(_example, m, py::mod_gil_not_used()) {
2323
m.def("get_device_name", &get_device_name);
2424
}
2525

0 commit comments

Comments
 (0)