MCPcopy
hub / github.com/deepspeedai/DeepSpeed / _dist_destroy

Method _dist_destroy

tests/unit/common.py:353–356  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

351 time.sleep(0.5)
352
353 def _dist_destroy(self):
354 if (dist is not None) and dist.is_initialized():
355 dist.barrier()
356 dist.destroy_process_group()
357
358 def _close_pool(self, pool, num_procs, force=False):
359 if force or not self.reuse_dist_env:

Callers

nothing calls this directly

Calls 3

destroy_process_groupMethod · 0.80
is_initializedMethod · 0.45
barrierMethod · 0.45

Tested by

no test coverage detected