I would recommend something based around QProcess or the python builtin subprocess module. Your GUI would set all the parameters as it does now, and when you hit the OK button it starts the mpirun command using one of the previously mentioned APIs.
I suggest doing it this way because MPI doesn't really lend itself to interactive programs. I suppose it would be possible to block all the slave nodes with an MPI_recv() and then unblock them with a send on the master when things are ready but that would probably make your code nightmarishly complicated. HTH, - John On Fri, Oct 29, 2010 at 11:37 AM, dizou <[email protected]> wrote: > > I have some code that uses Open MPI to do some pretty intense calculations > (KDEs). I made a GUI to set some parameters for the calculations. Is there > any way to integrate these two applications? > So what I would like to have is my GUI to my on one processor, and then > when > I click a button to do the calculations, the MPI stuff starts. > -- > View this message in context: > http://old.nabble.com/PyQt-and-MPI-tp30087634p30087634.html > Sent from the PyQt mailing list archive at Nabble.com. > > _______________________________________________ > PyQt mailing list [email protected] > http://www.riverbankcomputing.com/mailman/listinfo/pyqt >
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
