Exemplo n.º 1
0
 def _make_new_comm(rank_list):
     import distarray.localapi.mpiutils as mpiutils
     new_comm = mpiutils.create_comm_with_list(rank_list)
     if not mpiutils.get_base_comm():
         mpiutils.set_base_comm(new_comm)
     return proxyize(new_comm)  # noqa
Exemplo n.º 2
0
 def local_test_type():
     from mpi4py.MPI import Intracomm
     from distarray.localapi.mpiutils import get_base_comm
     bc = get_base_comm()
     return isinstance(bc, Intracomm), bc.rank, bc.size
Exemplo n.º 3
0
 def local_test_type():
     from mpi4py.MPI import Intracomm
     from distarray.localapi.mpiutils import get_base_comm
     bc = get_base_comm()
     return isinstance(bc, Intracomm), bc.rank, bc.size
Exemplo n.º 4
0
 def _make_new_comm(rank_list):
     import distarray.localapi.mpiutils as mpiutils
     new_comm = mpiutils.create_comm_with_list(rank_list)
     if not mpiutils.get_base_comm():
         mpiutils.set_base_comm(new_comm)
     return proxyize(new_comm)  # noqa