Exemplo n.º 1
0
 def _rank0_nccl_port_init(self):
     ip = ray.services.get_node_ip_address()
     port = find_free_port()
     nccl_addr = "tcp://{ip}:{port}".format(ip=ip, port=port)
     return nccl_addr, ip, port
Exemplo n.º 2
0
 def find_free_port(self):
     """Finds a free port on the current node."""
     return utils.find_free_port()
Exemplo n.º 3
0
 def find_free_port(self):
     """Finds a free port on the current node."""
     from ray.experimental.sgd import utils
     return utils.find_free_port()