[Logs Refactor] Optimize shutdown logs, easier to follow and consistent (#43707)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -2055,6 +2055,10 @@ def destroy_distributed_environment():
|
||||
|
||||
|
||||
def cleanup_dist_env_and_memory(shutdown_ray: bool = False):
|
||||
logger.debug(
|
||||
"[shutdown] Distributed: cleanup start shutdown_ray=%s",
|
||||
shutdown_ray,
|
||||
)
|
||||
# Reset environment variable cache
|
||||
envs.disable_envs_cache()
|
||||
|
||||
@@ -2089,6 +2093,8 @@ def cleanup_dist_env_and_memory(shutdown_ray: bool = False):
|
||||
"torch._C._host_emptyCache() only available in Pytorch >=2.5"
|
||||
)
|
||||
|
||||
logger.debug_once("[shutdown] Distributed: cleanup complete")
|
||||
|
||||
|
||||
def in_the_same_node_as(
|
||||
pg: ProcessGroup | StatelessProcessGroup, source_rank: int = 0
|
||||
|
||||
Reference in New Issue
Block a user