Thanks, what you said seems to be right, I just checked and solved it.
It might be caused by a conflict between openmpi and mpich library.
在 2022/11/2 02:06, Pritchard Jr., Howard 写道:
HI,
You are using MPICH or a vendor derivative of MPICH. You probably
want to resend this email to the mpic
Hi, teachers
code:
import mpi4py
import time
import numpy as np
from mpi4py import MPI
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
print("rank",rank)
if __name__ == '__main__':
if rank == 0:
mem = np.array([0], dtype='i')
win = MPI.Win.Create(mem, comm=comm)
else: