[ofa-general] Re: [PATCHv2] opensm/osm_mesh.c: Remove edges in lash matrix

Hal Rosenstock hal.rosenstock at gmail.com
Mon Sep 21 06:43:10 PDT 2009


Hi Sasha,

On Sun, Aug 30, 2009 at 6:36 AM, Sasha Khapyorsky <sashak at voltaire.com>wrote:

<snip...>


> > @@ -878,6 +950,12 @@ static void make_geometry(lash_t *p_lash, int sw)
> >                       n = s1->node->num_links;
> >
> >                       /*
> > +                      * ignore chain fragments
> > +                      */
> > +                     if (n < seed->node->num_links && n <= 2)
> > +                             continue;
> > +
> > +                     /*
> >                        * only process 'mesh' switches
> >                        */
> >                       if (!s1->node->matrix)
> > @@ -908,7 +986,8 @@ static void make_geometry(lash_t *p_lash, int sw)
> >                                       if (j == i)
> >                                               continue;
> >
> > -                                     if (s1->node->matrix[i][j] != 2) {
> > +                                     if (s1->node->matrix[i][j] != 2 &&
> > +                                             s1->node->matrix[i][j] <=
> 4) {
>
> What does this ' <= 4' check?
>
It's to rule out opposite nodes when distance is greater than 4. I've added
a comment to the next version of the patch for this.

-- Hal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20090921/a5d6ee8c/attachment.html>


More information about the general mailing list