Exemplo 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()
Exemplo n.º 2
0
def setup_address():
    ip = ray.services.get_node_ip_address()
    port = find_free_port()
    return f"{ip}:{port}"
Exemplo n.º 3
0
 def find_free_port(self):
     """Finds a free port on the current node."""
     return utils.find_free_port()
Exemplo n.º 4
0
def setup_address():
    ip = ray.util.get_node_ip_address()
    port = find_free_port()
    return f"tcp://{ip}:{port}"
Exemplo n.º 5
0
 def get_free_port(self):
     """Returns free TCP port in the current ray node"""
     return ray_utils.find_free_port()
Exemplo 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
Exemplo n.º 7
0
Arquivo: utils.py Projeto: zzmcdc/ray
def setup_address():
    ip = ray._private.services.get_node_ip_address()
    port = find_free_port()
    return f"tcp://{ip}:{port}"
Exemplo 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)