mpiexec + mpich-gm-1.2.5..10 + SMP
Christopher D. Maestas
cdmaest at sandia.gov
Thu Sep 4 17:25:17 EDT 2003
Pete,
One of our developers noticed the code for using smp in mpich-gm-1.2.5..10 is not there in start_tasks.c
Attached is the patch for this.
--- Chris
-------------- next part --------------
--- mpiexec.ORIG/start_tasks.c Thu Aug 14 14:30:40 2003
+++ mpiexec-0.74/start_tasks.c Thu Sep 4 15:01:47 2003
@@ -881,6 +881,7 @@
struct hostent *he;
int one = 1;
int flags, ret;
+ int j;
he = gethostbyname(tasks[i].name);
if (!he)
@@ -951,7 +952,10 @@
}
}
connected:
- growstr_printf(h, "<%d>", i);
+ for (j=0; j<numtask; j++) {
+ if (!strcmp(tasks[i].name, tasks[j].name))
+ growstr_printf(h, "<%d>", j);
+ }
}
growstr_append(h, "]]]");
More information about the mpiexec
mailing list