Page 1 of 1

OpenMM python run on MPI?

Posted: Tue Nov 20, 2018 9:05 am
by thc
Good day.
Can anyone provide an example, there pyhton scripts run on multiple processor using MPI?

I do not know why, but HelloArgon.cpp example, then running on 100 processors with MPIRUN, does not work correctly. It runs a copy of HelloArgon.exe on each processor not parallel. Every copy count task from the beginning

Re: OpenMM python run on MPI?

Posted: Tue Nov 20, 2018 10:29 am
by peastman
OpenMM doesn't use MPI internally. If you launch it through MPI, you're simply running a separate copy of your program on every processor.

You can write your own MPI code to do parallelization at a higher level. For an example of this, see https://github.com/kyleabeauchamp/repex. It's an implementation of replica exchange that uses MPI for communication between replicas.

Re: OpenMM python run on MPI?

Posted: Tue Nov 20, 2018 1:15 pm
by thc
Many, many thanks for your answer, Peter!