GTK & MPI




I'm just wondering if anyone has any experience using GTK & MPI together... I'm sort of at a dead end...

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)... 2) I write my GTK code and then insert MPI into it... I test and have only the main node get up all the GUI components... This would seem to work, but when I run it on N nodes, I get N-1 messages saying "Gtk-WARNING **: cannot open display:" and these nodes cannot continue with their execution...

Does anyone have an idea of how I might get around this (without resorting to making two separate processes and IPC)??? Thanks in advance...


	- Ian

-------------------------------------------------------------------------------
There are 10 kinds of people:
Those that understand binary and those that don't...
-------------------------------------------------------------------------------



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