Examples of using mpi4py #5755
-
|
Are there any examples of how to implement mpi4py into the python PICMI scripts that we can use for WarpX |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @KMalaravan, When you compile WarpX with MPI for Python, PICMI scripts can be run with Do you have more concrete questions on this that we can clarify? |
Beta Was this translation helpful? Give feedback.
Hi @KMalaravan,
When you compile WarpX with MPI for Python, PICMI scripts can be run with
mpiexec/mpirun/srun/etc. automatically.You can use
mpi4py, which WarpX is built to be compatible with, if you like to extend your PICMI scripts with MPI-rank specific logic. Here are a few examples doing that:https://github.com/search?q=repo%3ABLAST-WarpX%2Fwarpx+mpi4py+path%3AExamples%2F**&type=code
Do you have more concrete questions on this that we can clarify?