mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[c10d] Reduce test verbosity (#153116)
Has been seeing a lot of `Starting event listener thread for rank` recently in test print-out. Moving them to `logger.debug`. Pull Request resolved: https://github.com/pytorch/pytorch/pull/153116 Approved by: https://github.com/fduwjj
This commit is contained in:
parent
5a8c9c3ab0
commit
5dd746b4b5
|
|
@ -689,13 +689,13 @@ class MultiProcessTestCase(TestCase):
|
|||
|
||||
@staticmethod
|
||||
def _event_listener(parent_pipe, signal_pipe, rank: int):
|
||||
logger.info("Starting event listener thread for rank %s", rank)
|
||||
logger.debug("Starting event listener thread for rank %s", rank)
|
||||
while True:
|
||||
ready_pipes = multiprocessing.connection.wait([parent_pipe, signal_pipe])
|
||||
|
||||
if parent_pipe in ready_pipes:
|
||||
if parent_pipe.closed:
|
||||
logger.info(
|
||||
logger.debug(
|
||||
"Pipe closed for process %s, stopping event listener thread",
|
||||
rank,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user