helpers.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:maggma 作者: materialsproject 项目源码 文件源码
def get_mpi():
    """
    Helper that returns the mpi communicator, rank and size.
    """
    from mpi4py import MPI

    comm = MPI.COMM_WORLD
    rank = comm.Get_rank()
    size = comm.Get_size()

    return comm, rank, size
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号