LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Pak, Anne O (anne.o.pak_at_[hidden])
Date: 2003-05-13 16:32:59


I am using MPI_Comm_spawn to create processes on some remote slave nodes.
The C program that gets spawned on these remote nodes contain static
variables. I call MPI_Comm_spawn many times and these static variables
don't seem to be able to retain their values between calls (on the master
node) to MPI_Comm_spawn.

Instead, its seems calling MPI_Comm_spawn resets the static variables. Does
anyone have a suggestion as to how to keep simulate a 'static' variable on
the slave nodes so that they retain their values between MPI_Comm_spawn
calls?

Thank you,

Anne

___________________________________________________
Anne Pak, L1-50
Building 153 2G8
1111 Lockheed Martin Way
Sunnyvale, CA 94089
(408) 742-4369 (W)
(408) 742-4697 (F)