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