cloudmesh / cloudmesh-mpi

https://cloudmesh.github.io/cloudmesh-mpi/report-mpi.pdf
Other
1 stars 4 forks source link

Parallel Monte Carlo Method on PI #8

Closed shankerr closed 2 years ago

shankerr commented 3 years ago

https://github.com/cloudmesh/cloudmesh-mpi/blob/main/doc/chapters/report-mpi.md#running-monte-carlo-on-multiple-hosts

laszewsk commented 3 years ago

what is progress ...?

flealc commented 2 years ago

Ran in multiple PIs and worked. Very slow since I was not able to get Numba in the PIs and had to use the regular version, but it works just fine despite taking a long time. I was not sure if I should document the process, but then realized that running a script on multiple hosts is already detailed here https://github.com/cloudmesh/cloudmesh-mpi/blob/main/doc/chapters/report-mpi.md#running-mpi-on-multiple-computers

laszewsk commented 2 years ago

please put runtime into documenation so that others know how long it will take

flealc commented 2 years ago

Added a paragraph documenting execution on multiple hosts with PI cluster. Can be found right before the numba section here: https://github.com/cloudmesh/cloudmesh-mpi/blob/main/doc/chapters/report-mpi.md#numba

laszewsk commented 2 years ago

Is the parallel use case documented?

flealc commented 2 years ago

I added this blurb about the parallel use case. It is at the end of the section. (Not sure why the link will not work even for me) I am copying it here:

"Additionally, we can run this program on multiple hosts. For instance, you can use a machinefile or rankfile to execute the program on a PI cluster. Be advised, however, that we do not use numba on RaspberryOS, hence the execution of the program can take a relatively long time. For a reference, running `mpiexec -n 7 --machinefile machinefile ... parallel_pi.py" on a PI cluster consisting of a manager PI4 and six PI3 workers took around 40 minutes."

That's all I did, since all the task said was "figure out how to run on multiple hosts." Would you like me to add a step-by-step documentation?