[ofa-general] [PATCH 3/3] osm: adding root and compute node guid files options for fat-tree

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Thu Jun 14 01:20:19 PDT 2007


Hi Hal,

Non-CNs are treated as "dummies" when creating fat-tree order file,
because they are not participating in the MPI all-to-all communication.

-- Yevgeny

Signed-off-by:  Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_ucast_ftree.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/opensm/opensm/osm_ucast_ftree.c b/opensm/opensm/osm_ucast_ftree.c
index b1ee0ca..d3ff45f 100644
--- a/opensm/opensm/osm_ucast_ftree.c
+++ b/opensm/opensm/osm_ucast_ftree.c
@@ -1373,9 +1373,13 @@ __osm_ftree_fabric_dump_hca_ordering(
          p_group = p_sw->down_port_groups[j];
          p_hca = p_group->remote_hca_or_sw.remote_hca;
 
-         fprintf(p_hca_ordering_file,"0x%x\t%s\n", 
-                 cl_ntoh16(p_group->remote_base_lid),
-                 p_hca->p_osm_node->print_desc);
+         /* treat non-compute nodes as dummy */
+         if (p_hca->is_cn)
+            fprintf(p_hca_ordering_file,"0x%x\t%s\n", 
+                    cl_ntoh16(p_group->remote_base_lid),
+                    p_hca->p_osm_node->print_desc);
+         else
+            fprintf(p_hca_ordering_file,"0xFFFF\tDUMMY\n");
       }
 
       /* now print dummy HCAs */
-- 
1.5.1.4




More information about the general mailing list