MPI-Lab 1
MPI-Lab 1
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
if rank == 0:
print("Inside Parent Process")
else:
print("Inside Process ", rank)
7. Come to the prompt and execute the program using the following command
mpiexec -n 4 python script.py
or
mpiexec -n 4 py script.py (for windows 10)