LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Elie Choueiri (elie.choueiri_at_[hidden])
Date: 2007-06-10 12:59:32


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_at_[hidden]> 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&form=QBRE

-- 
(N)E