Skip to content

Commit 324e6f7

Browse files
Sam Luryefacebook-github-bot
authored andcommitted
Fix broken test (#505)
Summary: Pull Request resolved: #505 Fix broken test for T230654436. `DebugManager` should only be spawned when the proc mesh is first created, similar to `RDMAManager`. If `_mock_shape` isn't None, it means we're creating a proc mesh by slicing an existing one, so DebugManager will already exist. Reviewed By: colin2328, dcci Differential Revision: D78171244 fbshipit-source-id: 0f44ab40b3e530c9266d69f68a0b38669fa2d977
1 parent af4db6a commit 324e6f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/monarch/_src/actor/proc_mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(
103103
if _mock_shape is None and HAS_TENSOR_ENGINE:
104104
# type: ignore[21]
105105
self._rdma_manager = self._spawn_blocking("rdma_manager", RDMAManager)
106-
if not _is_initializing_debugger:
106+
if not _is_initializing_debugger and _mock_shape is None:
107107
self._debug_manager = self._spawn_blocking(
108108
_DEBUG_MANAGER_ACTOR_NAME, DebugManager, debug_client()
109109
)

0 commit comments

Comments
 (0)