Esempio n. 1
0
 def find_free_port(self):
     """Finds a free port on the current node."""
     from ray.util.sgd import utils
     return utils.find_free_port()
Esempio n. 2
0
def setup_address():
    ip = ray.services.get_node_ip_address()
    port = find_free_port()
    return f"{ip}:{port}"
Esempio n. 3
0
 def find_free_port(self):
     """Finds a free port on the current node."""
     return utils.find_free_port()
Esempio n. 4
0
def setup_address():
    ip = ray.util.get_node_ip_address()
    port = find_free_port()
    return f"tcp://{ip}:{port}"
Esempio n. 5
0
 def get_free_port(self):
     """Returns free TCP port in the current ray node"""
     return ray_utils.find_free_port()
Esempio n. 6
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
Esempio n. 7
0
File: utils.py Progetto: zzmcdc/ray
def setup_address():
    ip = ray._private.services.get_node_ip_address()
    port = find_free_port()
    return f"tcp://{ip}:{port}"
Esempio n. 8
0
def setup_address():
    ip = ray.services.get_node_ip_address()
    port = find_free_port()
    return "tcp://{ip}:{port}".format(ip=ip, port=port)