Skip to content

Commit

Permalink
Add comment explaining the PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF
Browse files Browse the repository at this point in the history
Signed-off-by: David Gardner <[email protected]>
  • Loading branch information
dagardner-nv committed Mar 6, 2025
1 parent 0bb5101 commit aa950d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

list(APPEND CMAKE_MESSAGE_CONTEXT "python")

# Disable the assert that checks for the GIL being held during incref/decref
# https://pybind11.readthedocs.io/en/stable/changelog.html#version-2-11-1-july-17-2023
add_compile_definitions("PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF=1")

if (MORPHEUS_BUILD_MORPHEUS_CORE)
Expand Down

0 comments on commit aa950d7

Please sign in to comment.