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.<br>
<br>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.<br>
<br>HTH,<br>- John<br><br><div class="gmail_quote">On Fri, Oct 29, 2010 at 11:37 AM, dizou <span dir="ltr"><<a href="mailto:di_zou@yahoo.com">di_zou@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I have some code that uses Open MPI to do some pretty intense calculations<br>
(KDEs). I made a GUI to set some parameters for the calculations. Is there<br>
any way to integrate these two applications?<br>
So what I would like to have is my GUI to my on one processor, and then when<br>
I click a button to do the calculations, the MPI stuff starts.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://old.nabble.com/PyQt-and-MPI-tp30087634p30087634.html" target="_blank">http://old.nabble.com/PyQt-and-MPI-tp30087634p30087634.html</a><br>
Sent from the PyQt mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</font></blockquote></div><br>