提交 8359b519 编写于 作者: D dongdaxiang

run pre-commit check files and fix code style problem

test=develop
上级 1497ce38
class P2PRoleMakers(object):
def __init__(self):
from mpi4py import MPI
self.comm = MPI.COMM_WORLD
self.MPI = MPI
def get_endpoints(self, port_start):
rank = self.comm.Get_rank()
size = self.comm.Get_size()
import socket
local_ip = socket.gethostbyname(socket.gethostname())
hostname = socket.gethostname()
all_ips = self.comm.allgather(local_ip)
all_ports = [str(port_start + rank) for ]
return all_ports
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册