<div dir="ltr"><div><div><div><div>Hi,<br><br></div>Can comm_spawn be used with win_create.<br></div>For ex:<br>Master process:<br> MPI_Comm_spawn(worker_program,MPI_ARGV_NULL, world_size-1,<br> info, 0, MPI_COMM_SELF, &everyone,<br>
MPI_ERRCODES_IGNORE);<br><br> MPI_Win_create(&testval, sizeof(double), 1,<br> MPI_INFO_NULL, everyone,<br> &nwin);<br><br></div>Worker process:<br> MPI_Comm_get_parent(&parent);<br>
if (parent == MPI_COMM_NULL) error("No parent!");<br> MPI_Comm_remote_size(parent, &size);<br> if (size != 1) error("Something's wrong with the parent");<br><br> fprintf (stdout,"Size: %zd\n", size);<br>
system("echo $NUM_THREADS");<br><br> MPI_Win_create(MPI_BOTTOM, 0,<br> 1, MPI_INFO_NULL,<br> parent, &nwin);<br><br><br><br></div><div>This one fails currently. Am I doing something wrong. It would be great if someone could help me.<br>
<br>Thanks<br>Ramesh<br></div></div>