constants.py 422 B

1234567
  1. from torch._C._distributed_c10d import _DEFAULT_PG_TIMEOUT
  2. # Default process group wide timeout, if applicable.
  3. # This only applies to the gloo and nccl backends
  4. # (only if NCCL_BLOCKING_WAIT or NCCL_ASYNC_ERROR_HANDLING is set to 1).
  5. # To make an attempt at backwards compatibility with THD, we use an
  6. # extraordinarily high default timeout, given that THD did not have timeouts.
  7. default_pg_timeout = _DEFAULT_PG_TIMEOUT