I'm doing this with OpenGL / GLUT / GLUI
So it's probably similar..
What I do is have the root/master node (rank 0) deal with
all the user
input & capture events then transmit orders to the
worker nodes..
// initialize MPI
if (myRank == 0)
{
// create The Window
// register The Event Handlers
}
else
{
// wait for events from the manager, can be done with a
simple
blocking MPI_Recv ()
// Receive and order from the master
// operate based on the order received
}
The event handlers do whatever you need with the event, then
transmit
the order to the workers to go ahead and operate...
Ofcourse, you can also have gui's for the workers if you
like..
Hope that helps
On 6/10/07, chenyong <cy163 hotmail.com> wrote:
>
>
> Hello All,
>
> i wonder if it make sense to attemp to use GTK to
create a GUI as frontend
> handling data input and result display, and to use MPI
to implement data
> process in the backend.
>
> I would be very grateful if you can provide an example
code.
>
>
> Thanks,
>
> cy163
>
____________________________________________________________
_____
> 中国十大热门旅游景点
> http://search.msn.com/results.aspx?q=%E4%B8%AD%E5%9B%
BD%E5%8D%81%E5%A4%A7%E9%A3%8E%E6%99%AF&mkt=zh-CN&for
m=QBRE
--
(N)E
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
|