Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion csrc/aio/py_lib/py_ds_aio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,6 @@ PYBIND11_MODULE(TORCH_EXTENSION_NAME, m)

.def("wait",
&deepspeed_aio_handle_t::wait,
"Wait for (ongoing) asynchronous operations to complete");
"Wait for (ongoing) asynchronous operations to complete",
py::call_guard<py::gil_scoped_release>());
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any BC concerns with python versions?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

py::call_guard<py::gil_scoped_release>() requires pybind11 ≥ 2.2.0 (added in v2.2.0 (2017-08-31) per the changelog), So this should be fine—this is an old requirement relative to current pybind11 releases. And there’s no Python-version BC concern.

}