[mvapich-discuss] Problem with MV2_IBA_HCA

Matthew Koop koop at cse.ohio-state.edu
Mon Dec 4 11:06:23 EST 2006


Michael,

Thanks for this feedback and patch, I've applied it to our SVN.

Thanks,
Matthew

On Mon, 4 Dec 2006, Schwind Michael wrote:

> Hello,
>
> there seems to be a problem when
> the evironment variable MV2_IBA_HCA
> is set to a value other then the
> first hca in the system.
>
> In the function rdma_open_hca in file
> rdma_iba_priv.c on lines 307 to 316
> there is some code, which searches
> for the specified hca in a list of hca's:
>
>
>             /* User specified a HCA, try to look for it */
>             j = 0;
>             while(dev_list[j]) {
>                 if(!strncmp(ibv_get_device_name(dev_list[j]),
>                             rdma_iba_hca, 32)) {
>                     ib_dev = dev_list[j];
>                     break;
>                 }
>             }
>             j++;
>
> This code is a endless loop if the
> value specified in rdma_iba_hca
> is different from mthca0 on my system
> with 2 infiniband adapters.
>
> The patch which should resolve this issue
> is at the end of this E-Mail.
>
> Michael
>
>
> --- mvapich2/src/mpid/osu_ch3/channels/mrail/src/gen2/rdma_iba_priv.c.orig
> 2006-12-04 13:47:58.000000000 +0100
> +++ mvapich2/src/mpid/osu_ch3/channels/mrail/src/gen2/rdma_iba_priv.c
> 2006-12-04 13:48:30.000000000 +0100
> @@ -312,8 +312,9 @@
>                      ib_dev = dev_list[j];
>                      break;
>                  }
> -            }
> -            j++;
> +                j++;
> +          }
> +
>          }
>
>          if (!ib_dev) {
>
>
>
>
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mail.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>



More information about the mvapich-discuss mailing list