[mpich2-commits] r4174 - mpich2/trunk/src/pm/hydra/utils/bind
balaji at mcs.anl.gov
balaji at mcs.anl.gov
Tue Mar 24 04:30:21 CDT 2009
Author: balaji
Date: 2009-03-24 04:30:21 -0500 (Tue, 24 Mar 2009)
New Revision: 4174
Modified:
mpich2/trunk/src/pm/hydra/utils/bind/bind.c
Log:
Use realid instead of recalculating, so later changes to how realid is calculated reflect on all options correctly.
Modified: mpich2/trunk/src/pm/hydra/utils/bind/bind.c
===================================================================
--- mpich2/trunk/src/pm/hydra/utils/bind/bind.c 2009-03-23 23:54:51 UTC (rev 4173)
+++ mpich2/trunk/src/pm/hydra/utils/bind/bind.c 2009-03-24 09:30:21 UTC (rev 4174)
@@ -149,7 +149,7 @@
realid = (id % (bind_info.num_cores * bind_info.num_sockets));
if (binding == HYD_BIND_RR) {
- return (id % (bind_info.num_sockets * bind_info.num_cores));
+ return realid;
}
else if (binding == HYD_BIND_BUDDY) {
/* If we reached the maximum, loop around */
More information about the mpich2-commits
mailing list