Calculate PI by Monte Carlo method and parallel cupute with MPI
-
First we should install MPI and Configure the environment. Please refer to https://blog.csdn.net/qq_36974075/article/details/81144807.
-
Go to the .exe directory and run "mpiexec -n 4 mpi_pi.exe" in Windows powershell(Adiminister), then you can call the 4 cores to compute Pi.
-
If you like it, please give me a star.
-
Go to https://blog.csdn.net/askjff for more MPI example.