Re: Re: gtk+ and MPI
- From: Jim Parker <hopeye cfl rr com>
- To: Stewart Adcock <stewart bellatrix pcl ox ac uk>, gtk-app-devel-list gnome org
- Subject: Re: Re: gtk+ and MPI
- Date: Sun, 03 Feb 2002 14:07:26 -0500
Hmmm,
Well in my particular case only the "head node" wants or needs a GUI ....
Could you do the GTK+ initialization after the MPI initialization and
within a if block as follows:
int main (int argc, char *argv[ ] )
{
MPI_Init(&argc, &argv);
MPI_Comm_size( ...);
MPI_Comm_rank ( ... );
if (my_node == 0)
{
gtk_init (&argc, &argv);
/* other initialization stuff */
gtk_main()
}
/* rest of code */
}
cheers,
Jim Parker
On Sat, 02 Feb 2002, Stewart Adcock wrote:
Date: Sat, 02 Feb 2002 16:40:03 +0000
To: gtk-app-devel-list gnome org
From: Stewart Adcock <stewart bellatrix pcl ox ac uk>
Sender: gtk-app-devel-list-admin gnome org
Subject: Re: gtk+ and MPI
Hi,
Havoc Pennington wrote:
> Just call MPI_init() after gtk_init(), gtk_init() removes the
> arguments it understands but leaves other arguments unmodified.
Calling MPI_Init() before gtk_init() will almost certianly work too,
subject to the exact implementation of MPI. (And this is much more
convenient when only one process needs the GUI). I have such an
application, and it works fine with all the versions of MPI that I've
tried.
LAM/MPI definitely ignores the arguments anyway.
Stewart.
--
____________________________________________________________________
Stewart Adcock stewart linux-domain com www.stewart-adcock.co.uk
Dept. Chemistry & Biochemistry, University of California, San Diego
4234 Urey Hall, 9500 Gilman Drive, La Jolla, CA 92093-0365 USA
lab: +1 858 534 0956 home: +1 858 453 2577
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]