Re: GTK & MPI



> Basically, I'm running some heavy computation on a Beowulf cluster...  I
> need the main node (the one with the monitor) to do some graphical output
> of the computations...  I have tried this in two ways: 1) I write my MPI
> code, and then start inserting GTK code into it...  I want the main node
> to set up the GUI and then wait for it to start receiving information...
> However, I found out that as soon as this node calls gtk_main, it can no
> longer continue to the rest of its code (the data gathering)

don't use gtk_main. Use g_main_context_iteration instead and call that
from the the internal-main loops of your program. That is a good start..


Stian Skjelstad





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]