Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/p/y/pythia-0.8.1.11/mpi/Communicator.py   pythia(Download)
def world():
    global _mpi_world
    if not _mpi_world:
        from mpi import MPI_COMM_WORLD
        _mpi_world = Communicator(MPI_COMM_WORLD)

src/p/y/pythia-0.8.1.11/mpi/__init__.py   pythia(Download)
    import sys
    from pyre.applications import start, AppRunner
    from mpi import MPI_Comm_rank, MPI_COMM_WORLD
 
    rank = MPI_Comm_rank(MPI_COMM_WORLD)